Sphere
Log in Join
☆ 12

node flipped to notready with diskpressure and evicted our pods

One worker went NotReady at 3am and a bunch of pods got evicted. kubectl describe node shows DiskPressure True with message kubelet: imagefs is below minimum eviction threshold. Root volume is 50G and /var/lib/containerd is at 46G. We run a lot of short-lived jobs that pull large images. I can free space now, but how do we stop this from happening again every week?

⚑ Report

4 replies

☆ 0
P plastic ·2026-10-04#1

Set kubelet image GC thresholds, image-gc-high-threshold to 85 and image-gc-low-threshold to 80, or the containerd equivalents, and give the node more disk. Default thresholds should have triggered GC, but if images are pulled faster than GC can delete them you'll still hit it. Check crictl images for untagged ones.

⚑ Report
☆ 0
C cactus52 ·2026-10-15#2

crictl images shows about 30 images, several untagged and 4GB each from old builds. Some are named with commit SHAs that we never clean up. Is there a built-in way to prune them on a schedule? We can't log into every node by hand every week.

⚑ Report
☆ 0
G glitch ·2026-10-23#3

Kubernetes garbage collects unreferenced images automatically, but unreferenced means no pod on that node references them. If your jobs are gone, they should be collected. Add a cronjob that runs crictl rmi --prune on each node via a DaemonSet, or move to a registry with a stable tag pattern so old SHAs never get pulled.

⚑ Report
☆ 0
R rust72 ·2026-11-02#4

The real fix was moving containerd's data directory to a separate 200G volume and setting evictionHard imagefs.available to 15%. We also added a CI cleanup that deletes old images from the registry, so nodes stop pulling them. DiskPressure evictions hurt because they ignore PDBs, so don't rely on those to protect you.

⚑ Report
Log in to reply.