Back to all scenarios
Scenario #392
Storage
Kubernetes v1.22, local-path-provisioner
StatefulSet Pods Lost Volume Data After Node Reboot
Node reboots caused StatefulSet volumes to disappear due to ephemeral local storage.
Find this helpful?
What Happened
After node maintenance, pods were rescheduled and couldn’t find their PVC data.
Diagnosis Steps
- 1ls inside pod showed empty volumes.
- 2PVCs bound to node-specific paths that no longer existed.
Root Cause
Using local-path provisioner without persistence guarantees.
Fix/Workaround
• Migrated to network-attached persistent storage (NFS/CSI).
Lessons Learned
Local storage is node-specific and non-resilient.
How to Avoid
- 1Use proper CSI drivers with data replication for StatefulSets.