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.
Show termination reason
Check whether the last exit reason was OOMKilled.