23_check_storage_health.yml - Usage Guide
Purpose
Read-only storage report on each host:
- df -hT — real filesystems
- df -i — inode usage
- containerd/crictl / docker disk usage + total image size
- kubectl if present: PVC / PV / StorageClass + unbound PVCs
Host scope
hosts: all — disk/inode is local to each node. PV/PVC data is filled on the node with kubectl access (usually the control-plane); if kubectl is missing on a worker, that section is skipped.
How to run
ansible-playbook -i inventories/cagatayuresincom/hosts.ini playbooks/23_check_storage_health.yml
ansible-playbook -i inventories/musteri_a/hosts.ini playbooks/23_check_storage_health.yml --limit workers
Interpretation
| Finding | Action |
|---|---|
| High disk Use% | Log / image accumulation; 17–18 |
| High IUse% | Many small files / layers |
| PVC Pending | StorageClass / provisioner / quota |
| PV Released/Failed | Manual cleanup / reclaim policy |
Notes
- Script:
playbooks/files/storage_health_check.py become: true(du / runtime directories)- Does not change the cluster.