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-forwardAlternatively, you might need sudo for Linux or MacOS:
sudo npm i -g my-port-forwardCheck 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 commandIf 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:
- Linux: https://cdn.codetunnel.net/mpf/mpf-linux
- MacOS: https://cdn.codetunnel.net/mpf/mpf-macos
- Windows: https://cdn.codetunnel.net/mpf/mpf-win.exe
