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