A container restarts with `Reason: Error, Exit Code: 137` but not `OOMKilled`.
AdvancedTroubleshootingResources, OOM, probes and termination
Answer
Likely causes → 137 is SIGKILL from something other than the cgroup OOM killer: the kubelet killing after the grace period expired (liveness failure or deletion with a hung shutdown), a node-level OOM that killed a child process, or an external kill -9.
Diagnose →
kubectl get events --field-selector involvedObject.name=api-x --sort-by=.lastTimestamp
kubectl debug node/<node> -it --image=ubuntu:24.04 -- chroot /host journalctl -u kubelet --since "30 min ago" | grep api-x
Fix → If preceded by Killing ... failed liveness probe, fix the probe and shutdown handling. If node dmesg shows OOM for a child process (worker processes under a supervisor), raise the limit or reduce workers.
Prevent → Do not assume 137 means memory; read events and kubelet logs together.
More on Resources, OOM, probes and termination
`kubectl describe pod` shows `Last State: Terminated, Reason: OOMKilled, Exit Code: 137`.BeginnerA Java service is OOMKilled at 2 GiB limit but the heap is only `-Xmx1800m`.IntermediateMany Pods on one node were killed at once and the node shows a `SystemOOM` event. Container limits were not reached.AdvancedPods show `Evicted` with `The node was low on resource: memory. Threshold quantity: 100Mi, available: 87Mi. Container app was using 1.4Gi, request is 256Mi`.IntermediateA Pod is evicted with `Pod ephemeral local storage usage exceeds the total limit of containers 1Gi`.Intermediatep99 latency spikes every few seconds, CPU usage graph shows only 40% of the limit.Advanced