Kubernetes Pod Debugging Cheat Sheet/Check resource usage for a pod

Compare live usage against requests and limits.

Section: Resources and OOMKilled

Check resource usage for a pod

bash
bash
kubectl top pod <pod> -n <namespace>

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
Show pod resource requests and limits
Inspect CPU and memory resource settings quickly.
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.