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

Behavior differs from kubectl port-forward service #23

Closed Adiqq closed 5 years ago

Adiqq commented 5 years ago

I can port forward connection to service with kubectl: kubectl port-forward -n some-namespace svc/postgres-somecluster-postgresql 5432:5432 However this same does not work correctly with kube-forwarder, because I can't connect with pgAdmin to database. Kube-forwarder indicates that port forward is running correctly.

I'm not sure if that's specific to cluster or postgresql, but I'm using this helm chart to deploy postgres: https://github.com/helm/charts/tree/master/stable/postgresql Problems occurs on kube-forwarder, version 1.4.0.

Maybe application could show some logs, like kubectl port-forward does, to help troubleshoot this kind of issues?

proAlexandr commented 5 years ago

Hi @Adiqq, thanks for using Kube Forwarder and the bug report. I have reproduced the issue. I hope we will be able to fix it soon.

proAlexandr commented 5 years ago

Hi, @Adiqq! The issue was because of Kube Forwarder didn't support named ports which services can have. We have released a new version. The version should work well with named ports. I hope it will help you. Thank you that you have found a bug and helped us make the app better!