MPF allows you to create Kubernetes port-forward groups and start them with a single command like shown above.
Create a port-forward group with:
mpf create <name>
You'll be prompted for the namespace, service and ports.
And start the port-forward group with:
mpf up <name>
If you have NodeJS installed on version 12 or higher, you can install MPF with:
npm i -g my-port-forward
Alternatively, you might need sudo
for Linux or MacOS:
sudo npm i -g my-port-forward
Check the installation with the --help
flag:
$ mpf --help
Usage: mpf [options] [command]
Options:
-V, --version output the version number
-h, --help display help for command
Commands:
list Lists all port-forward groups
get <name> Lists all port-forwards of a group
delete <name> Deletes a port-forward group
create <name> Creates a port-forward group
up [options] <name> Runs a port-forward group
help [command] display help for command
If you don't have NodeJS installed, you can install MPF with:
curl -sfL https://cdt.one/mpf.sh | sudo sh -
You can also install MPF by copying it's binary to your PATH. There are the download links: