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.
| #!/bin/bash | |
| set -e | |
| _=<<DOC | |
| You can pass options to tree, but it's a bit bodgy, so you'll have to use -- before adding any directories if you pass any options. | |
| If this script is available on your \$PATH then you can do \`git tree\` in repositories. | |
| DOC | |
| options=() | |
| directories=() |
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.