Forward a local port
medium risk
Tunnel to a pod/service port. See the flags and examples below, and run `man kubectl` for the full reference.
kubectl port-forward svc/db 5432:5432 -n prodForward a DB port · explain & risk-check →Reference text is hand-written and may be incomplete — check man kubectl for your version. Test destructive commands on a non-production system first.