Kubernetes Pod Debugging Cheat Sheet/Show pod resource requests and limits

Inspect CPU and memory resource settings quickly.

Section: Resources and OOMKilled

Show pod resource requests and limits

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

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 Resources and OOMKilled
Check resource usage for a pod
Compare live usage against requests and limits.
OpenIn sheetbashsame section
Show termination reason
Check whether the last exit reason was OOMKilled.
OpenIn sheetbashsame section
Show last exit code
Inspect the numeric exit code for the container.
OpenIn sheetbashsame section
List Pending pods
Find pods stuck before startup.
Find CrashLoopBackOff pods
List pods that are restarting and failing to stay up.
Inspect configured probes
View readiness, liveness, and startup probe definitions.