Kubernetes node-pressure eviction and kubelet thresholds

Learn why kubelet evicts pods under memory, disk and inode pressure, how hard and soft thresholds, QoS classes and system reservations shape that behavior, and what to plan before changing them.

On this page

Why Kubernetes evicts pods under node pressure and when to tune it

Kubelet eviction is the most likely cause when pods disappear from a node without a change to a Deployment, and the node itself is where you confirm it. The kubelet on each node watches resource signals and ends pods on its own when the node runs short, so the pods do not disappear because of a rollout. They show up with the status Evicted and a message that names the resource under pressure. Start with kubectl describe node and read the node conditions, which report MemoryPressure and DiskPressure, then check the node events and the status messages on the affected pods. Those sources usually separate a kubelet eviction from a crash, a manual drain or a deleted namespace. If no pressure condition was set when the pods vanished, look at other causes before you change any threshold.

The kubelet watches a small set of eviction signals. memory.available tracks memory the node can still allocate, nodefs.available and nodefs.inodesFree track free space and free inodes on the filesystem that holds kubelet and pod data, and imagefs.available covers the filesystem used for container images when the runtime stores images separately. Inode exhaustion is easy to miss because the disk can show free space while no new files can be created, and the kubelet reports it under the same DiskPressure condition. Each signal has a hard threshold that triggers eviction at once and can have a soft threshold with a grace period. Confirm the defaults for your Kubernetes version and your distribution in the kubelet configuration, because installers often set their own values. Eviction is a node-level safeguard: each kubelet acts only on its own node, so scheduler spreading and cluster-wide capacity do not protect a single node from running out of memory or disk.

Plan thresholds before production when the cluster will run workloads whose memory or disk use is hard to predict, such as large images, build jobs, log-heavy services, databases with local storage or workloads with bursty memory. Also plan them when nodes have small root filesystems, when image storage shares a disk with pod data, or when a single cluster mixes critical and best-effort workloads. The decisions are which signals to protect, how much headroom to keep for the operating system and kubelet, and whether to use soft thresholds that give workloads time to recover. Ask your installer or distribution vendor which kubelet settings they ship and who owns changing them on each node pool. Test any change on a non-production node pool first, and confirm that your monitoring alerts on node pressure before the kubelet starts evicting pods.

Eviction configuration options and when each fits

This table compares the kubelet eviction and reservation settings you can tune, with the situation each one fits and the trade-off it creates. Read it as a decision aid: start from the failure you are trying to prevent, then choose the setting that protects nodes without evicting pods earlier than your workloads can tolerate.

OptionWhen it fitsTrade-off
Hard eviction thresholds (for example memory.available, nodefs.available, imagefs.available, nodefs.inodesFree)Nodes must never run out of memory or disk, and an immediate eviction is acceptable when a signal is crossed. Good default for most self-managed clusters.Kubelet evicts pods with no grace period, so workloads may lose in-flight work. Thresholds set too high evict pods unnecessarily; set too low, the node can still exhaust the resource first.
Soft eviction thresholds with grace periods (evictionSoft and evictionSoftGracePeriod)Brief spikes are common, such as batch jobs or log bursts, and you want a warning window before eviction starts.Pods can keep consuming the resource for the whole grace period, so a fast-growing signal can still reach the hard threshold. Grace periods must be tuned against how quickly your workloads grow.
Minimum reclaim (evictionMinimumReclaim)Eviction of one pod frees too little, so the kubelet keeps evicting in a loop. Setting a minimum reclaim makes each eviction cycle free a meaningful amount.Larger reclaim values evict more pods than strictly needed, which can cascade into workload disruption on small nodes.
Eviction monitoring interval (evictionMonitoringPeriod or the kubelet housekeeping cycle)Nodes with fast-changing memory or disk use need quicker detection, or you need to reduce kubelet overhead on very large nodes.Shorter intervals raise kubelet and cAdvisor work on the node. Longer intervals let a signal overshoot the threshold before the kubelet reacts. Confirm the exact field name for your Kubernetes version.
System reservations (systemReserved)Operating system services such as sshd, journald and package managers need protected resources that workloads must not consume.Reserved resources are unavailable to pods, which lowers allocatable capacity and can make some workloads unschedulable. Size from observed system usage, not guesses.
Kube reservations (kubeReserved)Kubelet, container runtime and node agents need protected CPU and memory to keep the node responsive under load.Over-reserving wastes capacity on the node. Under-reserving lets pods starve the kubelet and runtime, which often shows up as NotReady nodes.
Pod QoS classes (Guaranteed, Burstable, BestEffort)Eviction order matters, so critical workloads should set requests equal to limits (Guaranteed) and noncritical batch work should run as BestEffort or Burstable.QoS only decides order among pods once eviction starts. It does not prevent pressure, and BestEffort pods are evicted first, so their workloads need a plan for interruption.

How QoS classes decide which pods are evicted first

When a node runs short of memory, disk or inodes, the kubelet chooses which pods to evict based on a ranking, not on the order they were scheduled. QoS class is the first input to that ranking, and it is set entirely by the requests and limits in each pod spec.

Guaranteed pods

A pod is Guaranteed when every container sets memory and CPU limits equal to its requests, and both are set for every container in the pod. These pods are evicted last among normal workloads, so they suit databases and core services. Check each container, including init containers and sidecars, because one container missing a limit moves the whole pod out of this class. Use kubectl get pod -o jsonpath='{.status.qosClass}' to confirm the class the cluster assigned.

Burstable pods

A pod is Burstable when it sets at least one memory or CPU request or limit but does not meet the Guaranteed rule. Most application workloads fall here. Under pressure, the kubelet evicts Burstable pods that use more memory than they requested before pods that stay within their requests. Review actual usage against requests before relying on that ordering, since a request set far below real use makes a pod a likely early victim.

BestEffort pods

A pod is BestEffort when no container sets any CPU or memory request or limit. The kubelet evicts these pods first when memory is under pressure. Batch jobs, test workloads and ad hoc debug pods are common BestEffort pods. Audit namespaces for them, and consider a LimitRange so new pods in a namespace receive default requests rather than none.

Requests, limits and the class they set

The class follows from the pod spec alone: requests and limits per container, for both CPU and memory. Requests drive scheduling and the eviction ranking, while limits cap usage at runtime. Setting a memory limit without a request makes Kubernetes use the limit as the request, which can change scheduling. Decide the pattern per workload tier and enforce it in admission rather than trusting each team to remember.

How priority interacts with QoS

Pod priority and QoS both feed the eviction ranking, and the exact order depends on the kubelet version and eviction signal. In general, the kubelet compares pods by whether their usage exceeds requests, then by priority, then by how far usage exceeds requests. A high-priority Burstable pod can outrank a low-priority Guaranteed pod in some cases, so confirm the ordering for your version in the kubelet eviction documentation before assigning priority classes to critical workloads.

Why unset requests make eviction unpredictable

When requests are missing, the scheduler packs pods onto nodes without a reliable picture of their memory needs, and the kubelet ranks them on usage it cannot compare to a baseline. Two pods with the same workload can end up in different classes after a small manifest change. Before a node-pressure incident, list pods without requests and ask which ones your team would accept losing first.

Setting kubelet eviction thresholds in order

This sequence moves a node pool from default eviction behavior to thresholds sized to your nodes, so the kubelet frees resources before the node becomes unstable. Each step produces a checked output that the next step depends on.

  1. Measure baseline node memory, disk and inode use

    The platform or monitoring team pulls at least several days of node-level memory, root and image filesystem usage, and inode counts from the metrics system for each node pool. Look at peak values, not averages, and note which nodes run image-heavy or log-heavy workloads. Confirm the sampling window covers normal batch jobs and deployments. The step is done when you can name the typical and peak usage for each pool and the filesystems that matter, and when you have written those figures down for the next steps.

  2. Decide system and runtime reservations

    The cluster owner decides how much memory and CPU to reserve for the kubelet, the container runtime and operating system daemons, using the node sizes and the baseline from the previous step. Reservations are set with the kubelet settings for system-reserved and kube-reserved, and they must be sized for the specific hardware, not copied from another cluster. Ask your vendor or distribution documentation which daemons it expects to run. The check is a written table per node pool showing reserved and allocatable values, reviewed by someone who can read the node's current capacity.

  3. Set requests and limits on workloads

    Application owners add memory and CPU requests and limits to their pods, starting with the namespaces that run the most important or most variable workloads. Eviction order depends on QoS class, so pods without requests are the first candidates when a node runs short. Use a policy check, such as a LimitRange or an admission check, to find pods with no requests. The check is a query or report showing the count of pods per namespace without requests, which should fall before you tune thresholds.

  4. Configure hard and soft eviction thresholds

    The platform engineer edits the kubelet configuration file on a staging node pool, setting evictionHard values for memory.available, nodefs.available, nodefs.inodesFree and imagefs signals where they apply. Add evictionSoft values with matching evictionSoftGracePeriod entries for signals where a short delay lets workloads drain or recover. Record the chosen numbers with the reason for each, because the values are environment-specific and must come from your baseline. Confirm the field names against the kubelet configuration reference for your Kubernetes version. The check is that the file validates and the kubelet restarts cleanly on one test node.

  5. Roll out to one node pool first

    The operations team applies the new kubelet configuration to a single node pool, usually a non-critical or lower-risk one, and cordons nodes one at a time while the change is applied. Drain workloads only where needed, and respect PodDisruptionBudgets that the application owners have defined. Keep the previous configuration available so you can roll back. The step is complete when every node in the pool reports the new configuration and no unexpected pod restarts appear beyond the ones you anticipated.

  6. Verify with events, kubelet logs and metrics

    Check that the kubelet logs show the thresholds loaded on each node and that no node reports unexpected pressure conditions. Review Kubernetes events for eviction messages, comparing evicted pods against their QoS class and priority. Confirm the metrics dashboard shows available memory and disk staying above the hard thresholds under load. Run a controlled load test on a staging node if you can, to see whether soft grace periods behave as intended. The step is done when the evidence matches your expectations and you have written down any pods evicted that should not have been.

  7. Extend the configuration to remaining pools

    After the first pool runs cleanly for the period your team set as acceptable, the platform team applies the same reviewed configuration to the next pool, adjusting reservations and thresholds only where the baseline showed a real difference. Keep the verification checks from the previous step in place for every pool. Record the final configuration in version control so future upgrades and node replacements use the same values. The step is done when each pool has a documented configuration, a named owner and a current verification record.

How the kubelet moves from node signal to pod eviction

The kubelet starts with resource signals it measures on the node, such as memory, nodefs, imagefs and inodes. It compares each signal to hard thresholds, which act immediately, and soft thresholds, which act only after a grace period has passed. Before evicting pods, it tries reclaim actions such as image and container cleanup. If pressure persists, it evicts pods in order of QoS class and priority, then sets a node condition that the scheduler reads when placing new pods. Check the node conditions and the eviction events to confirm which path ran.

The kubelet path from a measured signal to eviction and rescheduling.

How eviction tuning differs by environment

Bare-metal nodes usually have local disks that the operating system, the container runtime and the kubelet share or split in known ways. Because the node owns the whole disk, disk pressure is often the signal that matters most, and it tends to come from container image layers, writable container layers and node logs rather than from pods writing into their own volumes. Memory pressure matters too, but the node's full memory is visible and the reservations are easier to size against real hardware.

  • Image and root filesystem: Confirm whether /var/lib/containerd or the runtime data directory sits on the same filesystem as the kubelet root directory, since a single filesystem means one set of thresholds must cover everything.
  • Separate image filesystem: Check whether the disk layout gives images their own mount, because that changes which nodefs and imagefs signals the kubelet reports.
  • Log volume: Measure how much node and container log output reaches /var/log per day and whether log rotation is configured, since unrotated logs are a common cause of disk pressure.
  • Inode capacity: Check the inode count on formats with many small files, because inode pressure can evict pods while free bytes still look healthy.
  • Reserved resources: Confirm the kube-reserved and system-reserved values against what the host daemons actually use.

Before setting thresholds, confirm the filesystem layout, the image store path and the log volume on a representative node, then compare them with the kubelet's current configuration.

Operational risks when eviction thresholds are wrong

Eviction thresholds are a single set of kubelet settings, but their failure modes land on different teams: stateful workloads lose pods, nodes fill up before the kubelet reacts, and on-call engineers get paged too late or too often. Reviewing each risk before changing a threshold keeps platform and application owners working from the same numbers.

Evicting stateful or critical pods

Eviction ranks pods by QoS class and resource usage, so a database or message broker with Burstable or BestEffort settings can be terminated during node pressure. Check which pods on each node pool hold state, whether they run with Guaranteed requests and limits, and whether a PodDisruptionBudget or a dedicated node pool protects them. Eviction bypasses PDB protection, so do not rely on the budget alone.

Eviction docs

Thresholds that let nodes fill

Hard thresholds set too low leave the node with little headroom before the kubelet acts, so disk, memory or inode exhaustion can hit system daemons and the container runtime first. A node that runs out of disk may stop accepting work, fail its image pulls and become NotReady before any pod is evicted. Measure the actual headroom each node needs under peak load, then set thresholds from that measurement, not from the defaults alone.

Changes that trigger eviction storms

Lowering a threshold or shrinking an eviction grace period on a busy pool can evict many pods at once, and the rescheduled pods then compete for capacity on other nodes. Roll threshold changes out one node pool at a time and watch scheduling and restart counts after each step. Keep a tested rollback path, since the kubelet configuration is set per node and may need a restart to take effect.

Weak alerting before eviction starts

If alerts fire only when a node is already under pressure, operators have no time to clear images, drain a node or add capacity. Alert on node disk, memory and inode usage well before the eviction thresholds, and on the kubelet condition changes that signal pressure. Confirm the alerts reach an on-call rotation that can act, because an alert that is ignored during a storm gives no protection.

Unclear ownership between teams

Platform teams usually own kubelet configuration, while application teams own requests, limits and the priority of their pods. When no one owns the link between them, a team can raise a limit that makes its pods the first evicted or leave a memory leak unnoticed until the node fails. Assign written ownership for thresholds, reserved resources, QoS expectations and priority classes, and review them whenever a new workload type joins the cluster.

Questions teams ask before tuning eviction or hiring help

What drives the effort of tuning node-pressure eviction?

The effort follows the shape of your clusters more than the eviction settings themselves. The main drivers are the number of node pools, because each pool can run different hardware, disk layouts and kubelet settings; the workload mix, since memory-heavy, bursty or stateful pods react differently to pressure; the storage layout, especially whether image and container filesystems share a disk with logs and local volumes; and how mature your monitoring is. Teams with per-node memory, disk and inode metrics and alert history can test thresholds against real pressure events. Teams without that data spend the first part of the work building visibility before changing any value.

Can our platform team tune kubelet eviction thresholds without outside help?

Yes, many teams can, provided they have someone who can read kubelet configuration, node metrics and pod events, and who can test changes on a non-production cluster first. The work is mostly careful measurement: identifying which signal triggers evictions, checking whether soft thresholds and grace periods match how long your workloads take to recover, and confirming that system daemons have reserved resources. Outside help tends to pay off when the cluster is business-critical, when no one on the team has tuned kubelet settings before, or when the change has to pass a formal review with evidence attached.

How long does a careful eviction tuning rollout take?

The duration depends mainly on change control rather than on the kubelet edit itself. A rollout that goes through a standard change board, staged node pool updates and observation windows takes longer than one applied directly by an experienced operator. Plan for time to collect baseline metrics, time to test in a non-production environment, time to roll the new configuration node pool by node pool, and time to watch for eviction changes after each stage. Ask your change approver which evidence they require, because that list usually sets the schedule. A written scope is the right place to agree on the timeline for your environment.

What do we need to provide for an eviction tuning engagement?

The work needs four things from your side. First, node access or a way to read the kubelet configuration on each pool, along with permission to change it through your normal tooling. Second, metrics covering node memory, disk, inode usage and pod restarts for a representative period, including any existing alerts and past eviction events. Third, time from workload owners who can describe startup times, restart tolerance and which pods must not be evicted. Fourth, a named contact for change approvals and a non-production cluster or pool where changes can be tested before production.

What does a fixed-scope engagement cover for eviction work?

DeployOpen works from a written scope, so deliverables and timelines are agreed before work starts. For node-pressure eviction, a scope typically defines which clusters and node pools are included, the signals to review (memory, disk and inodes), the kubelet settings to assess, how system daemon reservations are handled, the test approach, the rollout stages and the handover material. Anything outside that list, such as image garbage collection redesign or workload right-sizing, would be scoped separately. Your quote follows from that written scope, and it is the right place to confirm exactly what your team receives at the end.

What is the cost of eviction tuning, and what recurs?

Costs fall into one-time work and recurring work. The one-time part covers analysis of current pressure events, configuration design, testing, staged rollout and documentation. The recurring part comes from keeping thresholds valid as node pools, workloads and Kubernetes versions change, because kubelet defaults and behavior can shift between releases. Kubernetes ships about three minor releases a year, so ask any partner how they will review settings at each upgrade. DeployOpen does not publish prices. Ask for a quote that separates one-time analysis from any ongoing review, and confirm what is included in each.

Should we review eviction settings alongside our Kubernetes upgrades?

Yes. Eviction behavior is tied to node configuration, and node configuration changes during upgrades. The Kubernetes version skew policy requires kube-apiserver to be upgraded one minor version at a time, and kubelets may be up to three minor versions older than kube-apiserver, so your nodes can run a mix of versions during a rollout. Check that thresholds, reserved resources and any related kubelet flags still apply on each version in use. Scheduling the eviction review as part of the upgrade plan avoids discovering a behavior change after nodes have already moved.

How DeployOpen scopes eviction and kubelet threshold work

DeployOpen scopes eviction and kubelet threshold work in writing before any node is changed. The scope names the clusters and node pools in question, the workloads that must keep running through pressure events, the signals to be tuned (memory, nodefs and imagefs disk, and inodes), and the monitoring that will show whether the change worked. Because the outcome depends on how much capacity each node really has, the first step is an inventory: node sizes, the kubelet configuration in use, any systemReserved and kubeReserved values already set, and the QoS class of the workloads on each pool. Teams that cannot yet answer these questions should expect the scoping phase to include collecting that data from their own environment.

The work is reviewed as one unit rather than as separate tuning tasks. A change to a hard eviction threshold affects how much headroom the scheduler's allocatable figure leaves for workloads, which in turn affects QoS behavior and the reservations held for system daemons. DeployOpen reviews node pools, reservations, QoS classes and alerting together, then agrees the expected eviction behavior for each pool. Changes are applied through your own infrastructure, using your configuration management, staging environments and change approval process, so the record of what changed and why stays with your team. Each change is rolled out to a limited set of nodes first, and the agreed signals are checked before the rest of the pool follows.

At the end of the engagement, DeployOpen documents the final kubelet settings, reservations, eviction thresholds, alert rules and the reasoning behind each value, so that operations staff can explain a future eviction event without reconstructing the design. Ongoing support can be added as a retainer for periodic review after cluster growth, workload changes or upgrades, with the terms agreed in writing. Confirm with DeployOpen what a retainer covers and how it is priced before assuming any response times or service levels.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.