Pods are evicted from a node with `The node was low on resource: ephemeral-storage. Threshold quantity: 10%, available: 8%` and the node shows `DiskPressure`.
IntermediateTroubleshootingNodes, kubelet and container runtime
Answer
Likely causes → The node filesystem (or image filesystem /var/lib/containerd) crossed nodefs.available<10% or imagefs.available<15%. Usual culprits: many large unused images, huge container logs, Pods writing to emptyDir or their writable layer, core dumps.
Diagnose →
kubectl describe node ip-10-0-1-9 | grep -A2 -i pressure
# On the node
df -h / /var/lib/containerd /var/log
sudo du -xsh /var/log/pods/* | sort -h | tail
sudo crictl images | wc -l
sudo crictl rmi --prune # remove unused images
Fix → Prune unused images, delete the offending Pod's huge logs/data, then evicted Pods reschedule. If the node keeps hitting it, increase disk size.
Prevent → Root volumes sized for images (50–100 GiB), containerLogMaxSize/containerLogMaxFiles in kubelet config, ephemeral-storage limits, and disk alerts at 75%.
More on Nodes, kubelet and container runtime
A node is `NotReady` and `kubectl describe node` shows `container runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:Network plugin returns error: cni plugin not initialized`.BeginnerA node flips to `NotReady` with `Kubelet stopped posting node status`.BeginnerNode condition shows `PLEG is not healthy: pleg was last seen active 3m10s ago; threshold is 3m0s`.AdvancedAfter a reboot the kubelet will not start: `failed to run Kubelet: running with swap on is not supported, please disable swap!`.BeginnerOn a new kubeadm node, static control-plane Pods and other Pods restart randomly every few minutes. Containerd is installed from the distro.Advancedkubelet logs say `failed to garbage collect required amount of images. Attempted to free 4.2GB, but only found 0 bytes eligible to free`.Advanced