runbooks:coustom_alerts:HostOutOfDiskSpace
This alert is triggered when a host node’s disk has less than 10% free space on any filesystem (excluding tmpfs, fuse, cifs, nfs) for more than 2 minutes. It indicates that the host is running low on disk space, which may cause system or application failures.
Low disk space can cause:
This alert is critical, as disk space exhaustion can immediately impact production workloads.
Check disk usage:
df -h df -i lsblk
Check disk space per mountpoint:
du -sh /var/lib/kubelet/* du -sh /home/*
Check pods consuming disk:
kubectl get pvc --all-namespaces kubectl describe pod <POD_NAME> -n <NAMESPACE>
Check node events:
kubectl get events --sort-by=.lastTimestamp
Drain node if needed:
kubectl drain <NODE_NAME> --ignore-daemonsets --delete-emptydir-data kubectl uncordon <NODE_NAME>