Troubleshooting guide
Kubernetes pod Evicted: why it happens and how to prevent it
An Evicted pod was removed by the kubelet to protect the node, usually because memory or disk ran low. It is the node saving itself.
3 min read9 sectionsUpdated
On this page
What eviction means
When a node crosses an eviction threshold, the kubelet terminates pods to reclaim resources. Unlike OOMKilled, where the kernel kills one process, eviction removes the whole pod, and a controller schedules a replacement elsewhere. If the replacement lands on an equally crowded node, the problem simply moves.
Common causes
- Memory pressure on a node with pods that use more than they requested.
- Disk pressure from logs, images or emptyDir volumes.
- Exceeded
ephemeral-storagelimit on a single pod. - Pods with no requests. BestEffort pods are evicted first.
- Node-level processes consuming memory outside Kubernetes.
# List evicted pods and their reason
kubectl get pods -A --field-selector=status.phase=Failed -o custom-columns=NS:.metadata.namespace,NAME:.metadata.name,REASON:.status.reason,MSG:.status.message
# Which node, and under what pressure?
kubectl describe node worker-3 | grep -E 'Pressure|Allocated' -A1
# Actual usage against requests
kubectl top pods -A --sort-by=memory | head -15
# Clean up old evicted pods
kubectl delete pods -A --field-selector=status.phase=FailedFixes
Set memory requests near real usage, and consider equal requests and limits for critical pods, giving them Guaranteed QoS. Set ephemeral-storage requests and limits for anything that writes temp files. Rotate container logs, and send them to a central system rather than keeping them on the node. Use topologySpreadConstraints to distribute replicas. Reserve capacity for system daemons with --system-reserved and --kube-reserved.
Catch it automatically
Track eviction count and node pressure conditions over time: repeated evictions on one pool mean under-provisioned nodes. Compare requests with usage in your Kubernetes monitoring and ship logs off the node with log management, which removes a major cause of disk pressure.
What is the difference between Evicted and OOMKilled?
OOMKilled is the kernel ending a process that exceeded a limit. Eviction is the kubelet removing a pod to protect the node.
Which pods are evicted first?
Generally BestEffort pods first, then Burstable pods using more than they requested. Guaranteed pods go last.
Do evicted pods restart?
The pod itself does not. Its controller, such as a Deployment, creates a new one.
Related reading
- Kubernetes pod stuck in Pending: how to fix it: Fix Kubernetes pods stuck in Pending: insufficient CPU or memory, taints, node selectors and unbound PersistentVolumeClaims, using scheduler events.
- Kubernetes pod stuck in Terminating: how to fix it: Fix pods stuck in Terminating: finalizers, unreachable nodes, stuck volumes and processes that ignore SIGTERM, and when force deletion is safe to use.
- Infrastructure monitoring: See every host, container and pod on a map coloured by CPU, memory or disk. Drill into Kubernetes, alert on CPU and memory, and start with a one-file agent.
- 405 Method Not Allowed: why it happens and how to fix it: Fix 405 Method Not Allowed: POST sent to a static file, redirects that turn POST into GET, CORS preflights and routing mismatches, with curl checks.
- Kubernetes CrashLoopBackOff: how to fix it: Fix CrashLoopBackOff step by step: read the previous container’s logs and exit code, then solve bad config, failing probes, OOM kills or missing secrets.
- Server and Kubernetes monitoring: See CPU, memory, disk and running instances for servers, Docker containers and Kubernetes pods beside uptime checks, logs and traces, with a one-file agent.
Watch your own site and services with VitalRix
Uptime checks, APM, logs, real-user monitoring, alerts and status pages in one place. Every product has a free tier and no credit card is needed.