Interview Prep/Kubernetes/Services, Networking, Ingress & Gateway API

What does `kubectl port-forward` do?

BeginnerConceptServices, Networking, Ingress & Gateway API
Answer

It opens a tunnel from your laptop through the API server to a Pod or Service port, for debugging without exposing anything. It is not for production traffic.

kubectl port-forward svc/web 8080:80
curl localhost:8080
All Kubernetes questions Roadmap: Kubernetes networking, storage & scaling

More on Services, Networking, Ingress & Gateway API