Kubernetes Pod Debugging Cheat Sheet/Port-forward and test HTTP probe locally

Verify whether the probe endpoint behaves as expected.

Section: Readiness, Liveness, and Startup Probes

Port-forward and test HTTP probe locally

bash
bash
kubectl port-forward pod/<pod> -n <namespace> 8080:<container-port>

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 Readiness, Liveness, and Startup Probes
Inspect configured probes
View readiness, liveness, and startup probe definitions.
OpenIn sheetbashsame section
See probe failure events
Describe a pod and inspect event messages for failing probes.
OpenIn sheetbashsame section
Run the probe command manually
Validate probe behavior inside the container context.
OpenIn sheetbashsame section
Call a probe endpoint after port-forward
Use curl locally against the forwarded health endpoint.
OpenIn sheetbashsame section
List Pending pods
Find pods stuck before startup.
Find CrashLoopBackOff pods
List pods that are restarting and failing to stay up.