Fixing Evicted Pods and Node Pressure in Kubernetes
Evicted pods are the kubelet telling you a node ran out of something. Here's how to read the signal, stop the bleeding, and keep it from happening again.
Key takeaways
- An Evicted pod means the kubelet killed it because its node ran low on memory, disk, inodes, or PIDs.
- Run kubectl describe pod to see which resource, then set honest memory and ephemeral-storage requests, cap ephemeral storage, and tune image garbage collection.
- Delete the leftover Failed pods afterwards; they do not fix the cause.
On this page
To fix Evicted pods, run kubectl describe pod <name> and read which resource the node was low on, then fix that cause: set memory and ephemeral-storage requests (pods with none are evicted first), cap ephemeral storage, and prune images on long-lived nodes. Delete the leftover Failed pods only after that, because they are tombstones, not the problem.
Verified against
Kubernetes 1.37 (kubelet and kubectl), against the kubernetes.io node-pressure eviction, resource management, Pod QoS and garbage collection docs. Checked October 2026.
You open a namespace expecting the usual and instead find a column of pods in Evicted status, sometimes dozens of them. Nothing crashed in your code. No bad deploy. The pods just got shown the door.
Eviction is not a bug. It is the kubelet doing exactly what it was told: when a node runs low on a resource it cannot page out or reclaim fast enough, the kubelet starts killing pods to protect itself. If the node dies, everything on it dies. So the kubelet picks victims first.
The resources that trigger this are memory, ephemeral storage (disk used by container logs, emptyDir volumes, and the writable container layer), the imagefs / nodefs the container runtime lives on, and PIDs. When one of those crosses a threshold, the node flips a condition and the kubelet goes hunting.
Reading the signal
Start with the pod itself.
$ kubectl describe pod payments-api-7c9f-abc12 -n prod
At the top you get Status: Failed and Reason: Evicted, and in the message a line like The node was low on resource: ephemeral-storage. Container app was using 2Gi, request is 0. That last clause is the whole story. The request was zero, so from the scheduler's point of view this pod promised to use nothing, which makes it the first thing thrown overboard.
Then look at what the node was actually screaming about.
$ kubectl get events -n prod --sort-by=.lastTimestamp | grep -i evict
$ kubectl describe node ip-10-2-4-19 | grep -A8 Conditions
Node conditions are the ground truth. You are looking for MemoryPressure, DiskPressure, or PIDPressure reading True. A node under DiskPressure will keep evicting pods, and freshly scheduled replacements land, fill up, and get evicted again. That loop is the classic symptom people mistake for a crash-looping app.
For a fast overview of who is hurting:
$ kubectl top nodes
$ kubectl top pods -n prod --sort-by=memory
Memory pressure
Memory is the one people hit first. A node reports MemoryPressure=True, the kubelet reclaims what it can, and when that is not enough it evicts.
The kubelet ranks candidates by three things, per the node-pressure eviction docs: whether usage exceeds requests, Pod Priority, and usage relative to requests. In practice, BestEffort pods (no requests at all, so any usage exceeds them) and Burstable pods running over their requests go first. Guaranteed pods, where requests equal limits on every container, and Burstable pods under their requests go last. Hard-threshold evictions use a 0-second grace period, so there is no graceful shutdown.
So the fix is not a bigger node. The fix is telling the scheduler the truth.
# deployment.yaml (container spec excerpt)
resources:
requests:
memory: 512Mi
cpu: 250m
limits:
memory: 512Mi
cpu: 500m
Set memory and CPU requests equal to limits on every container and the pod is Guaranteed (the example above has a higher CPU limit, which makes it Burstable). It becomes the last thing evicted instead of the first. For workloads that genuinely spike, keep the request honest and let the limit sit higher, which puts you in Burstable and still protects you far better than the zero-request default. Our rule: no production pod ships without a memory request. If you cannot say how much a service needs, you do not understand it well enough to run it.
Ephemeral storage and disk pressure
This one is quieter and bites harder. Ephemeral storage fills up from three places, and it is almost always a mix.
Container logs are first. A chatty app writing to stdout with no rotation will pack the node disk over a few days. emptyDir volumes are second, because people treat them as free scratch space and forget they count against the node. The writable container layer is third, from anything an app writes outside a mounted volume.
Cap it so a single greedy pod cannot take the node down with it.
# deployment.yaml (container spec excerpt)
resources:
requests:
ephemeral-storage: 1Gi
limits:
ephemeral-storage: 2Gi
A pod that blows past its ephemeral-storage limit gets evicted on its own, before it touches the node's overall health. That is the outcome you want. Blast radius of one instead of the whole node.
Disk pressure also comes from image accumulation, which is not the app's fault at all. Nodes that stay up for weeks pull dozens of image versions and never garbage-collect aggressively enough. Check it:
$ kubectl describe node ip-10-2-4-19 | grep -iE 'DiskPressure|ephemeral-storage'
The kubelet prunes unused images when disk usage passes imageGCHighThresholdPercent and stops at imageGCLowThresholdPercent, oldest-used first. If your nodes are long-lived, lower those, and set eviction thresholds explicitly so cleanup starts before you are in the red. The built-in hard defaults on Linux are memory.available<100Mi, nodefs.available<10%, imagefs.available<15% and nodefs.inodesFree<5%; 100Mi is a thin margin on a busy node:
# /var/lib/kubelet/config.yaml (excerpt)
apiVersion: kubelet.config.k8s.io/v1beta1
kind: KubeletConfiguration
imageGCHighThresholdPercent: 75
imageGCLowThresholdPercent: 60
evictionHard:
memory.available: "500Mi"
nodefs.available: "10%"
nodefs.inodesFree: "5%"
imagefs.available: "15%"
Set every threshold you care about when you override evictionHard: per the docs, changing any one sets the unchanged ones to zero unless MergeDefaultEvictionSettings is true. On managed node groups, pass these through the provider's kubelet config mechanism rather than editing the file by hand.
Stopping the loop and cleaning up
Evicted pods do not clean themselves up quickly. The kubelet sets their phase to Failed, and they sit there as tombstones cluttering kubectl get pods until the control plane's terminated-pod garbage collector reaches its threshold. Sweep them:
$ kubectl delete pods -n prod --field-selector=status.phase=Failed
That deletes every Failed pod in the namespace, not only evicted ones, so check the list first if you keep failed Job pods for debugging. It does not fix the cause, so do it after you have set requests, not instead.
If the pressure is real and your requests are already honest, the node is simply too small. Replacement pods that then sit Pending with Insufficient memory are the scheduler saying the same thing, covered in fixing FailedScheduling. Add capacity or spread the load. Cluster Autoscaler or Karpenter should be doing this for you, but a node stuck evicting can be one that autoscaling has not caught up to yet, so check that the scaler is not blocked on something.
For workloads you cannot afford to lose several replicas of at once, a PodDisruptionBudget limits voluntary disruptions during drains and upgrades. A PDB does not protect against node-pressure eviction: the docs state the kubelet does not respect PodDisruptionBudgets or terminationGracePeriodSeconds there. It buys you safety during the planned events, which is where most self-inflicted outages actually come from. Pair it with proper requests and you have covered both the accident and the plan.
If you want the wider map of failure modes, our Kubernetes troubleshooting guide sits next to this one.
Questions people ask
Why are my Kubernetes pods getting evicted?
The node ran short of memory, disk space, inodes, or process IDs and crossed a kubelet eviction threshold. kubectl describe pod names the resource in a message like "The node was low on resource: ephemeral-storage". Pods using more than they requested go first, which is why pods with no requests at all are the usual victims. Check node conditions for MemoryPressure, DiskPressure or PIDPressure.
How do I delete all evicted pods?
Run kubectl delete pods -n <namespace> --field-selector=status.phase=Failed, or add -A instead of -n to sweep every namespace. Evicted pods have phase Failed, so this catches them, along with any other failed pods such as crashed Job runs. Deleting them only tidies the listing; the controller has already created replacements, which will be evicted again unless you fix the resource pressure.
Does a PodDisruptionBudget prevent eviction?
Only for voluntary, API-initiated evictions such as kubectl drain or a cluster upgrade. Node-pressure eviction is performed by the kubelet, which ignores PodDisruptionBudgets and the pod's termination grace period. To protect a workload from pressure eviction, give it accurate requests, ideally the Guaranteed QoS class, and a higher Pod Priority.
The call we'd make
Set memory and ephemeral-storage requests on everything, no exceptions. Make the pods you cannot lose Guaranteed. Cap ephemeral storage so one bad actor evicts itself instead of the node. Turn on real image garbage collection on long-lived nodes. Then sweep the tombstones. Most eviction incidents trace back to a zero request somewhere, and that is a config line, not a capacity problem.
Sources
Cite this article
Kiril Urbonas (2026). Fixing Evicted Pods and Node Pressure in Kubernetes. DevOpsNess. Updated 2026-10-31. https://www.devopsness.com/blog/fix-pod-evicted
[Fixing Evicted Pods and Node Pressure in Kubernetes](https://www.devopsness.com/blog/fix-pod-evicted) (Kiril Urbonas, DevOpsNess, updated 2026-10-31)
More from DevOps
Explore more articles in this category
kaniko CVE-2026-105769: Lookalike ACR Hosts Get Your Azure Token. Rebuild on v1.25.20
A FROM line pointing at a host like x.azurecr.io.attacker.com is enough to make kaniko hand the build's Entra ID token to that host. Which kaniko forks and images are affected, how to find Azure identities in your build pods, and what to rotate.
Sign Container Images With Cosign: Keyless GitHub Actions Workflow, SBOM and In-Cluster Checks
One workflow that builds, signs keylessly with GitHub OIDC, attaches an SBOM and SLSA provenance, plus the Kyverno policy that refuses anything unsigned. Copy it, change three names, ship it.
GitLab CVE-2026-110264: A Second CVSS 10 RCE in Nine Days. Patch to 19.5.1
An unauthenticated regex-compiler RCE reaching back to GitLab 7.0, no workaround, and backports on older branches that fix only the critical bug. The exact version per branch and the commands to get there.
You might have missed
Evergreen posts worth revisiting.