kube-forwarder icon indicating copy to clipboard operation
kube-forwarder copied to clipboard

Feature Request: Autostart kube-forwarder + connect on boot

Open avolution opened this issue 5 years ago • 1 comments
trafficstars

avolution avatar Feb 26 '20 16:02 avolution

Instead of using kube-forwarder (at least until they might add support for something like this, which is unlikely to happen anytime soon) you can probably use docker, e.g.

docker run --restart=unless-stopped --name forward-xxx -p 127.0.0.1:8080:8080 --volume $HOME/.kube:/root/.kube bitnami/kubectl:latest -- kubectl port-forward ...

One annoying thing about this is that if the pod kubectl connects to is killed you have to restart the docker container.

dobesv avatar Apr 27 '20 19:04 dobesv