During a traffic spike the BestEffort batch Pods all disappeared while web Pods survived. Was that a bug?
BeginnerTroubleshootingResources, OOM, probes and termination
Answer
Likely causes → Working as designed. Under node memory pressure the kubelet evicts BestEffort Pods (no requests/limits) first, then Burstable Pods over their requests, and Guaranteed Pods last.
Diagnose →
kubectl get pod batch-x -o jsonpath='{.status.qosClass}'
kubectl get events -A --field-selector reason=Evicted
Fix → If batch work must survive, give it requests (Burstable or Guaranteed) and capacity; otherwise let Jobs retry.
Prevent → Every workload sets requests; batch runs on its own node pool or with lower PriorityClass and is designed to be retried.
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