---
source: https://iinventedlight.com/library/notes/kubernetes-node-pressure-eviction.md
title: "Kubernetes node-pressure eviction - kubelet thresholds, MemoryPressure and which Pods go first"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "CC-BY-4.0 (Kubernetes docs); CC-BY-4.0 (kubernetes/website (GitHub)); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "Summary by iinventedlight (AI-assisted). Sources: Kubernetes docs, Node-pressure Eviction; kubernetes/website (GitHub), node-pressure-eviction.md (source page). CC-BY-4.0 (https://raw.githubusercontent.com/kubernetes/website/main/LICENSE). Copyright The Kubernetes Authors."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-18
status: published
approved_by: "Cole Withington, 2026-11-20 13:14 PT: \"Publish the full batch and rewrite the 6 live notes\""
checked_on: 2026-11-18
as_of: 2026-11-18
confidence: medium
untested: "Not reproduced (2026-11-18). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-devops: kubernetes node-pressure eviction"
tags: [kubernetes, kubelet, eviction, memory, disk, scheduling]
client: Librarian
sources:
  - id: S1
    title: "Node-pressure Eviction"
    publisher: Kubernetes docs
    url: https://kubernetes.io/docs/concepts/scheduling-eviction/node-pressure-eviction/
    accessed: 2026-11-18
    license: "CC-BY-4.0"
  - id: S2
    title: "node-pressure-eviction.md (source page)"
    publisher: kubernetes/website (GitHub)
    url: https://github.com/kubernetes/website/blob/main/content/en/docs/concepts/scheduling-eviction/node-pressure-eviction.md
    accessed: 2026-11-18
    license: "CC-BY-4.0"
---
# Kubernetes node-pressure eviction - kubelet thresholds, MemoryPressure and which Pods go first
**Answer:** The kubelet monitors memory, disk space and inodes, and when an eviction threshold is met it fails Pods on the node to reclaim resources. Configure hard thresholds with the `evictionHard` field, such as `memory.available<1Gi`.

## Example kubelet configuration

```yaml
apiVersion: kubelet.config.k8s.io/v1beta1
kind: KubeletConfiguration
evictionHard:
  memory.available: "500Mi"
  nodefs.available: "10%"
  imagefs.available: "15%"
  nodefs.inodesFree: "5%"
evictionSoft:
  memory.available: "1Gi"
evictionSoftGracePeriod:
  memory.available: "1m30s"
evictionMaxPodGracePeriod: 60
```

## Hard versus soft thresholds

- A hard eviction threshold has no grace period: the kubelet kills pods immediately without graceful termination.
- A soft threshold pairs a threshold with an administrator-specified grace period; the kubelet returns an error on startup without one. `evictionMaxPodGracePeriod` sets the maximum allowed pod termination grace period.
- Defaults on Linux include `memory.available<100Mi`, `nodefs.available<10%`, `imagefs.available<15%` and `nodefs.inodesFree<5%`. If you change any parameter, the others are not inherited and are set to zero, so specify them all.

## What the kubelet ignores

Node-pressure eviction does not respect PodDisruptionBudget or the pod's `terminationGracePeriodSeconds`. Evicted Pods get phase `Failed`; a Deployment or StatefulSet then creates replacements.

## Node conditions

| Condition | Signal |
|---|---|
| `MemoryPressure` | `memory.available` |
| `DiskPressure` | `nodefs.*`, `imagefs.*` or `containerfs.*` space and inodes |
| `PIDPressure` | `pid.available` |

## Eviction order

Before evicting, the kubelet tries to reclaim node-level resources, such as removing unused container images. It then ranks Pods by whether usage exceeds requests, then Pod Priority, then usage relative to requests.

## OOM killer

If the node has an out of memory (OOM) event before the kubelet reclaims memory, it depends on the oom_killer. The kubelet sets `oom_score_adj` by QoS: `-997` for `Guaranteed`, `1000` for `BestEffort`, and a value in between for `Burstable`.

## See also

- [kubernetes-qos-classes](https://iinventedlight.com/library/notes/kubernetes-qos-classes/)
- [kubernetes-resource-requests-limits](https://iinventedlight.com/library/notes/kubernetes-resource-requests-limits/)

## Claims

- id: C1
  claim: Hard eviction thresholds have no grace period.
  source: S2
  evidence: "A hard eviction threshold has no grace period."

- id: C2
  claim: Node-pressure eviction ignores PodDisruptionBudget.
  source: S2
  evidence: "The kubelet does not respect your configured"

- id: C3
  claim: Changing one threshold zeroes the other defaults.
  source: S1
  evidence: "then the values of other parameters will not be inherited as the default values"

## Sources

- [S1] Node-pressure Eviction. Kubernetes docs. https://kubernetes.io/docs/concepts/scheduling-eviction/node-pressure-eviction/ . License: CC-BY-4.0. Accessed 2026-11-18.

- [S2] node-pressure-eviction.md (source page). kubernetes/website (GitHub). https://github.com/kubernetes/website/blob/main/content/en/docs/concepts/scheduling-eviction/node-pressure-eviction.md . License: CC-BY-4.0. Accessed 2026-11-18.

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Kubernetes docs, Node-pressure Eviction; kubernetes/website (GitHub), node-pressure-eviction.md (source page). CC-BY-4.0 (https://raw.githubusercontent.com/kubernetes/website/main/LICENSE). Copyright The Kubernetes Authors. Text was condensed and changed from the originals.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
