Reach a pod locally without exposing a Service.
Section: Logs, Exec, and Ephemeral Debugging
Port-forward to a pod
bash
bash
kubectl port-forward pod/<pod> -n <namespace> 8080:80Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Logs, Exec, and Ephemeral Debugging