Test an internal service from your workstation.
Section: Connectivity Testing
Port-forward to a service
bash
bash
kubectl port-forward svc/<service> -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 Connectivity Testing
Call a service from another pod
Validate in-cluster connectivity and service routing.
Test TCP connectivity with nc
Check if a target port is reachable from inside the cluster.
Show listening ports inside a pod
Inspect which ports the container is actually listening on.