Menu

Kubernetes DiskPressure: How to Find Which Pod Is Eating Your Node's Disk (Bottlerocket Included)
📰

Kubernetes DiskPressure: How to Find Which Pod Is Eating Your Node's Disk (Bottlerocket Included)

DEV Community: kubernetes·Pawan Kumar·15 days ago
#xPIwFWqk
#devtokubernetes#devto#dev#node#container
Long article (2519 words) — no AI summary yet.
Reading 0:00
15s threshold

Your pager goes off. A pod got evicted. You run kubectl describe node and there it is: DiskPressure=True .

So you do what everyone does. You open a shell on the node and run df -h . It says 90% full. You run du -sh /* and add it up. It says 40%.

Where did the other half of the disk go?

If your nodes run Bottlerocket, it gets worse. There is no SSH, no package manager, and no crictl on the host. The usual playbook does not even start.

This post walks through a method that works on any Kubernetes node, and a read-only script that does the whole investigation for you. It tells you which namespace, pod and container is using the disk, what is growing right now, and what already got evicted in the past.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.