Interview Prep/Kubernetes/Resources, OOM, probes and termination

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.

All Kubernetes questions Roadmap: Kubernetes core

More on Resources, OOM, probes and termination