This is a one liner to connect to a machine and start kubectl proxy
, and start a tunnel:
ssh -L 8001:127.0.0.1:8001 -tt $machine "bash -O huponexit -c 'kubectl proxy'"
This will kill kubectl proxy
when the SSH process is terminated.
This is a one liner to connect to a machine and start kubectl proxy
, and start a tunnel:
ssh -L 8001:127.0.0.1:8001 -tt $machine "bash -O huponexit -c 'kubectl proxy'"
This will kill kubectl proxy
when the SSH process is terminated.