Interview Prep/Kubernetes/Nodes, kubelet and container runtime

Writes fail with `no space left on device` but `df -h` shows 40% free.

IntermediateTroubleshootingNodes, kubelet and container runtime
Answer

Likely causes → Inode exhaustion: millions of tiny files (session files, a cache, unrotated small logs, a runaway image layer with many files).

Diagnose →

df -i /
sudo find /var -xdev -type f | cut -d/ -f2-4 | sort | uniq -c | sort -rn | head

Fix → Delete the small-file hoard and fix the app creating it. If it is in a container writable layer, restart the Pod to reset it.

Prevent → Monitor inode usage (node_filesystem_files_free) alongside space.

All Kubernetes questions

More on Nodes, kubelet and container runtime