Forwarding of a local port to a resource in Kubernetes
Requires kubectl
Useful for development, testing and troubleshooting
kubectl port-forward pod/nginx 8080:80
curl -s localhost:8080
This bypasses load balancing!
kubectl port-forward service/web 8080:80
curl -s localhost:8080