Skip to content

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

Key points

  • The eviction message names the resource that ran out.
  • QoS class decides who goes first: BestEffort, then Burstable, then Guaranteed.
  • Ephemeral storage is often the surprise, thanks to logs and temp files.
  • Evicted pods remain listed until cleaned up.

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-storage limit on a single pod.
  • Pods with no requests. BestEffort pods are evicted first.
  • Node-level processes consuming memory outside Kubernetes.

Diagnose it

The status message identifies the resource and often the container that used the most.

bash
# 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=Failed

Fixes

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.

Frequently asked questions

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.

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.