Forward a local port to a service.
Section: Delete, Copy, and Exec
Port-forward service
bash
bash
kubectl port-forward svc/web 8080:80 -n paymentsExplanation
Forward a local port to a service.
Learn 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 Delete, Copy, and Exec