Port Forward to a Pod¶
When to Use This Guide¶
Use this guide when you want to access an application running inside a pod from your local machine.
Port forwarding is useful for:
- debugging services
- testing APIs
- accessing internal dashboards
Step 1 — Find the Pod¶
List running pods.
Example:
Step 2 — Forward the Port¶
Forward a local port to the pod.
Now access the application locally:
Step 3 — Test the Application¶
Open a browser or run:
Common Issues¶
Port Already in Use
Choose a different local port.
Pod Not Running
Verify pod status.
Related Guides¶
Networking
- Expose a Service
- Expose a Service with Ingress