Forward to a selected pod from a deployment.

Section: Services and Ingress

Port-forward deployment

bash
bash
kubectl port-forward deployment/web 8080:8080 -n payments
Explanation

Forward to a selected pod from a deployment.

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 Services and Ingress
List services
Show services across namespaces.
OpenIn sheetbashsame section
Describe service
Inspect selectors, endpoints, ports, and type.
OpenIn sheetbashsame section
List endpoints
Show service endpoint IPs.
OpenIn sheetbashsame section
List EndpointSlices
Inspect EndpointSlice objects used for service discovery.
OpenIn sheetbashsame section
List ingresses
Show ingress resources across namespaces.
OpenIn sheetbashsame section
Describe ingress
Inspect rules, backends, and events.
OpenIn sheetbashsame section