Check whether the last exit reason was OOMKilled.
Section: Resources and OOMKilled
Show termination reason
bash
bash
kubectl get pod <pod> -n <namespace> -o jsonpath='{.status.containerStatuses[0].lastState.terminated.reason}{"
"}'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 pod resource requests and limits
Inspect CPU and memory resource settings quickly.
Inspect init container statuses
See waiting, terminated, and exit details for init containers.
Show waiting reason for first container
Compact way to inspect wait state reasons.