Kubernetes Port Forwarding
April 11, 2022
I have several services deployed to kubernetes. Some of them are external accessible (using an Istio VirtualService) and others are only accessed from within the cluster.
It's possible to port forward from the local machine to a remote port on kubernetes, even one that is not exposed outside the cluster:
$ kubectl -n namespace port-forward deploy/service-name 8081:8091
This will make service-name:8091
available from localhost:8081