port-forwarding doesn't work #9704
-
Hello, I can't get port-forwarding to work (can't access pod from the internet). I turn port forwarding on as follows:
Then, when I try to reach it from outside, if fails:
From the Live Manifest of that pod:
and
Do I do something wrong? The above example is just for testing, I have some real deployment where I have networking issues and can't reach a pod with port-forwarding, so I tried to debug it and this led me to this simple example with nginx. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
By default, forwarded ports are only available via the loopback address. It specifically tells you that in the Run
|
Beta Was this translation helpful? Give feedback.
By default, forwarded ports are only available via the loopback address. It specifically tells you that in the
kubectl port-forward
output.Run
kubectl port-forward --help
and note the bit where it says: