Pods show `Evicted` with `The node was low on resource: memory. Threshold quantity: 100Mi, available: 87Mi. Container app was using 1.4Gi, request is 256Mi`.
IntermediateTroubleshootingResources, OOM, probes and termination
Answer
Likely causes → Node-pressure eviction. The kubelet evicts Pods whose usage exceeds their request the most, so a Burstable Pod using 1.4 GiB against a 256 MiB request is first in line.
Diagnose →
kubectl get pods -A --field-selector status.phase=Failed | grep Evicted
kubectl get pod api-x -o jsonpath='{.status.message}'
kubectl describe node ip-10-0-1-9 | grep -i pressure
Fix → Raise the request to real usage so the scheduler places it correctly. Clean up evicted Pod objects: kubectl delete pods -A --field-selector status.phase=Failed.
Prevent → Requests close to real usage, Guaranteed QoS for critical services, and alerts on MemoryPressure.
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.AdvancedA 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.AdvancedPods restart every few minutes with `Liveness probe failed: Get "http://10.0.3.17:8080/healthz": context deadline exceeded (Client.Timeout exceeded while awaiting headers)`.Intermediate