Skip to content
  • Home
  • About
  • No Access
  • Privacy Policy
Bits of .NET
Bits of .NET
  • Asp.Net Core
  • C#
  • SQL
  • JavaScript
  • CSS
  • About
  • ErcanOPAK.com
  • No Access
  • Privacy Policy

Bits of .NET

Daily micro-tips for C#, SQL, performance, and scalable backend engineering.

  • Asp.Net Core
  • C#
  • SQL
  • JavaScript
  • CSS
  • About
  • ErcanOPAK.com
  • No Access
  • Privacy Policy
Kubernetes

Kubernetes: Fix Pods Evicted Because of Node Memory Pressure

- 05.09.26 - ErcanOPAK

☸️ Your Pods Are Healthy One Minute, Evicted the Next – No Crash, No Error

Pods running perfectly fine, passing every health check, suddenly show as Evicted with no application error, no crash log, nothing in the pod’s own logs explaining why – because the decision to remove them was made entirely at the NODE level, for reasons the pod itself never got a chance to see coming.

🐞 The Problem

$ kubectl get pods
NAME                 READY   STATUS     RESTARTS
checkout-api-7f9d8b    0/1    Evicted    0

$ kubectl describe pod checkout-api-7f9d8b
Status: Failed
Reason: Evicted
Message: The node was low on resource: memory.

🔍 Why This Happens

Kubernetes' kubelet actively monitors each node's available memory
(and other resources), and when a node comes under genuine memory
pressure, it evicts pods to protect the NODE itself from becoming
completely unresponsive - starting with pods using more memory than
their configured 'requests' (an easy target for eviction since
they're already exceeding their reserved amount) or pods with no
resource requests/limits configured at all, which the scheduler
had no accurate accounting for in the first place.

✅ The Fix: Set Realistic Resource Requests and Limits on Every Pod

  • Set a memory REQUEST that accurately reflects what the pod actually needs under normal load – the scheduler uses this to decide which node has room, and an unrealistically low request lets too many pods land on the same node, setting up exactly this kind of pressure.
  • Set a memory LIMIT as well, so a pod with a genuine memory leak or unexpected spike gets OOMKilled on its own (a clear, attributable failure) rather than silently contributing to node-wide pressure that evicts OTHER, innocent pods alongside it.
  • Monitor actual memory usage against configured requests/limits over time (via metrics-server, Prometheus, or your cloud provider’s monitoring) – both to catch pods that are chronically under-provisioned and to right-size requests instead of guessing.

⚠️ Why ‘No Error in the Pod’s Own Logs’ Makes Sense Here

  • Eviction is a decision made by the kubelet ABOUT the pod, from the outside, based on node-wide conditions the pod’s own application code has no visibility into whatsoever – there’s no error to log from inside the pod because, from the application’s perspective, nothing about ITS own execution ever went wrong.
  • Check kubectl describe node <node-name> for the node’s own conditions and recent events – this is where the actual pressure signal and eviction decision are recorded, not in any individual pod’s logs.

An evicted pod was never accused of doing anything wrong — it was simply the one the node picked to protect itself, and the real fix is giving the scheduler accurate numbers so it never has to make that choice under pressure.

— Cloud Architect

Related posts:

Kubernetes: Fix In-Cluster API Calls That Suddenly Return 403 Because automountServiceAccountToken W...

Kubernetes: Fix In-Cluster API Calls That Suddenly Return 403 Because automountServiceAccountToken W...

Kubernetes: Use kubectl logs --tail=100 -f to Debug Faster

Kubernetes: Use kubectl logs --tail=100 -f to Debug Faster

Kubernetes: StatefulSets for Database Deployments

Kubernetes: StatefulSets for Database Deployments

Views: 13

Post navigation

Visual Studio: Fix an Output Window Showing No Errors While the Build Clearly Failed
ASP.NET Core: Why Antiforgery Token Validation Fails Only on Your Load-Balanced Servers

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

November 2026
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
30  
« Oct    

Most Viewed Posts

  • How to make theater mode the default for Youtube (1,068)
  • Get the User Name and Domain Name from an Email Address in SQL (990)
  • How to add default value for Entity Framework migrations for DateTime and Bool (986)
  • Get the First and Last Word from a String or Sentence in SQL (865)
  • How to select distinct rows in a datatable in C# (859)
  • How to enable, disable and check if Service Broker is enabled on a database in SQL Server (661)
  • Add Constraint to SQL Table to ensure email contains @ (619)
  • Average of all values in a column that are not zero in SQL (577)
  • How to use Map Mode for Vertical Scroll Mode in Visual Studio (553)
  • Find numbers with more than two decimal places in SQL (481)

Recent Posts

  • Network Speed Monitor Windows Application v2.5.1
  • Ağ Hızı İzleyici Windows Uygulaması v2.5.1
  • How to make theater mode the default for Youtube
  • The AI Prompt That Audits a Function for Thread-Safety Gaps
  • Ajax: Fix a Fetch Request Caching a Response Despite No-Store
  • WordPress: Fix a Navigation Block Losing Submenu Items After Sync
  • Visual Studio: Fix CodeLens Reference Counts Stuck at Stale Numbers
  • C#: Fix a UTF-8 String Literal Behaving Differently in a Switch
  • Photoshop: Fix a Liquify Mesh Snapping Back on a Smart Object
  • The AI Prompt That Turns a Crash Dump Into a Short Repro Script

Most Viewed Posts

  • How to make theater mode the default for Youtube (1,068)
  • Get the User Name and Domain Name from an Email Address in SQL (990)
  • How to add default value for Entity Framework migrations for DateTime and Bool (986)
  • Get the First and Last Word from a String or Sentence in SQL (865)
  • How to select distinct rows in a datatable in C# (859)

Recent Posts

  • Network Speed Monitor Windows Application v2.5.1
  • Ağ Hızı İzleyici Windows Uygulaması v2.5.1
  • How to make theater mode the default for Youtube
  • The AI Prompt That Audits a Function for Thread-Safety Gaps
  • Ajax: Fix a Fetch Request Caching a Response Despite No-Store

Social

  • ErcanOPAK.com
  • GoodReads
  • LetterBoxD
  • Linkedin
  • The Blog
  • Twitter
© 2026 Bits of .NET | Built with Xblog Plus free WordPress theme by wpthemespace.com