Kubernetes Pod Churn & Node Thrashing: Ephemeral Storage Exhaustion and Eviction Cascades
When background worker pods continuously write temporary scratch files, un-rotated log buffers, or dynamic assets directly to container filesystems without explicit ephemeral storage limits, worker nodes quietly enter local disk pressure states. The kubelet then triggers aggressive pod evictions, sparking cluster-wide pod churn, Karpenter/Cluster Autoscaler thrashing, and AWS bill inflation. Here…
Kubernetes pod churn and node thrashing occur when background worker pods write temporary files directly to container filesystems without setting limits on ephemeral storage. This leads to local disk pressure, aggressive pod evictions, Karpenter/Cluster Autoscaler thrashing, and increased AWS costs. To diagnose this issue, use the kubelet's stats summary endpoint to identify pods consuming node disk and check recent eviction events.
To remediate the problem, enforce ephemeral storage requests and limits in production manifests, set memory caps for in-memory scratch space, and tune kubelet eviction thresholds and node consolidation thresholds in Karpenter.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to