Kubernetes Pod Debugging Cheat Sheet/Inspect configured probes

View readiness, liveness, and startup probe definitions.

Section: Readiness, Liveness, and Startup Probes

Inspect configured probes

bash
bash
kubectl get pod <pod> -n <namespace> -o jsonpath='{.spec.containers[*].readinessProbe}{"
"}{.spec.containers[*].livenessProbe}{"
"}{.spec.containers[*].startupProbe}{"
"}'

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
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
Port-forward and test HTTP probe locally
Verify whether the probe endpoint behaves as expected.
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.