pixel-point / kube-forwarder

Easy to use Kubernetes port forwarding manager
https://kube-forwarder.pixelpoint.io/
MIT License
1.08k stars 183 forks source link

Feature Request: Autostart kube-forwarder + connect on boot #49

Open avolution opened 4 years ago

dobesv commented 4 years ago

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.