<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/why-did-kubernetes-evict-a-pod-that-wasn-t-the-biggest-memory-consumer--gutkuddzv" -->

---
title: Why Did Kubernetes Evict a Pod That Wasn't the Biggest...
description: A BestEffort pod with no memory requests or limits got evicted during node memory pressure, and node affinity pinned the replacement pod to the same overloaded...
canonical: https://daily.dev/posts/why-did-kubernetes-evict-a-pod-that-wasn-t-the-biggest-memory-consumer--gutkuddzv
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Why Did Kubernetes Evict a Pod That Wasn't the Biggest Memory Consumer? | daily.dev
og:description: A BestEffort pod with no memory requests or limits got evicted during node memory pressure, and node affinity pinned the replacement pod to the same overloaded...
og:url: https://daily.dev/posts/why-did-kubernetes-evict-a-pod-that-wasn-t-the-biggest-memory-consumer--gutkuddzv
og:image: https://api.daily.dev/og/posts/gutKuDdZV.png
og:image:alt: Why Did Kubernetes Evict a Pod That Wasn't the Biggest Memory Consumer?
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Why Did Kubernetes Evict a Pod That Wasn't the Biggest Memory Consumer?

**[Kubernetes & Cloud Native Community](https://daily.dev/sources/kubernetescloudnativecommunity)** · [@divyansh30](https://daily.dev/divyansh30) · 1 min read · 0 upvotes · 0 comments

## Summary

A BestEffort pod with no memory requests or limits got evicted during node memory pressure, and node affinity pinned the replacement pod to the same overloaded node, causing repeated scheduling failures. Setting appropriate resource requests and limits resolved the recurring outage. The post raises discussion questions about how teams identify BestEffort pods at risk and manage recovery when node affinity restricts rescheduling options.

## Content

Ever had a Kubernetes pod get evicted during memory pressure even though it wasn't the biggest workload on the node?

That's what makes these incidents tricky.

The pod had no memory requests or limits, which put it in the `BestEffort` QoS class. When the node ran short on memory, that made the pod a strong eviction candidate.

Then things got worse.

Node affinity had pinned the workload to the same node. After eviction, the replacement pod couldn't immediately schedule because that node was under `MemoryPressure`.

A relatively small resource configuration detail turned a temporary memory spike into a repeating outage.

I'm curious how other Kubernetes engineers handle this:

- Do you enforce memory requests across all workloads?
- Have you had pods repeatedly evicted under `MemoryPressure`?
- Have node affinity or node selectors made recovery harder?
- How do you identify `BestEffort` pods that could become eviction candidates?

I came across a practical write-up that walks through the incident, the eviction behavior, and how adding appropriate resource requests and limits changed the outcome.

[https://www.kubeblogs.com/kubernetes-pod-evicted-memory-pressure/](https://www.kubeblogs.com/kubernetes-pod-evicted-memory-pressure/)

**Have you ever had a Kubernetes eviction that initially didn't make sense?**

#Kubernetes #CloudNative #DevOps #SRE #KubernetesNetworking

## Similar posts on daily.dev

- [Decoupling Scheduling from Runtime Survival: Kubernetes PriorityClass vs. QoS](https://daily.dev/posts/decoupling-scheduling-from-runtime-survival-kubernetes-priorityclass-vs-qos-yx5quikuw) · Medium · 0 upvotes · 0 comments
- [Kubernetes Requests and Limits: How to Right-Size Pods Without Breaking Reliability](https://daily.dev/posts/kubernetes-requests-and-limits-how-to-right-size-pods-without-breaking-reliability-2idykp32g) · Cast AI · 0 upvotes · 0 comments
- [Your Pod Died of “Out of Ephemeral Storage” but the Disk Is Half Empty\!\!](https://daily.dev/posts/your-pod-died-of-out-of-ephemeral-storage-but-the-disk-is-half-empty--jvrjsmjmg) · ITNEXT · 9 upvotes · 1 comments
- [Fixing AKS NodePressure Memory Eviction with Azure Disk CSI: Root Cause & Recovery Guide](https://daily.dev/posts/fixing-aks-nodepressure-memory-eviction-with-azure-disk-csi-root-cause-recovery-guide-jylppuc9r) · Medium · 1 upvotes · 0 comments
- [Your pod may be requesting 25× more CPU than you think — and Kubernetes won’t tell you](https://daily.dev/posts/your-pod-may-be-requesting-25-more-cpu-than-you-think-and-kubernetes-won-t-tell-you-vixzxfjce) · Dynatrace · 0 upvotes · 0 comments

---

Tags: [#kubernetes](https://daily.dev/tags/kubernetes), [#sre](https://daily.dev/tags/sre)

[View this post on daily.dev](https://daily.dev/posts/why-did-kubernetes-evict-a-pod-that-wasn-t-the-biggest-memory-consumer--gutkuddzv)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/why-did-kubernetes-evict-a-pod-that-wasn-t-the-biggest-memory-consumer--gutkuddzv","headline":"Why Did Kubernetes Evict a Pod That Wasn't the Biggest Memory Consumer?","text":"A BestEffort pod with no memory requests or limits got evicted during node memory pressure, and node affinity pinned the replacement pod to the same overloaded node, causing repeated scheduling failures. Setting appropriate resource requests and limits resolved the recurring outage. The post raises discussion questions about how teams identify BestEffort pods at risk and manage recovery when node affinity restricts rescheduling options.","url":"https://daily.dev/posts/why-did-kubernetes-evict-a-pod-that-wasn-t-the-biggest-memory-consumer--gutkuddzv","datePublished":"2026-09-08T04:28:29.741Z","dateModified":"2026-09-13T21:05:17.412Z","author":{"@type":"Person","name":"Divyansh","url":"https://daily.dev/divyansh30","image":"https://media.daily.dev/image/upload/s--f9lbkpFv--/f_auto/v1744873189/avatars/avatar_JMQ4qarKTe7zPurSPRrzM","description":"Aspiring engineer with an interest in AI, tech and DevOps :)","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":1090}},"image":"https://media.daily.dev/image/upload/s--9wtThOLW--/f_auto/v1788841709/posts/gutKuDdZV?_a=BAMAMicg0","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"isPartOf":{"@type":"WebPage","url":"https://daily.dev/squads/kubernetescloudnativecommunity","name":"Kubernetes \u0026 Cloud Native Community"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Kubernetes \u0026 Cloud Native Community","item":"https://daily.dev/squads/kubernetescloudnativecommunity"},{"@type":"ListItem","position":3,"name":"Why Did Kubernetes Evict a Pod That Wasn't the Biggest Memory Consumer?"}]}
```

