Cloud Disk Attach Stuck for 30 Minutes: 6 Engineering Decisions for K8s CSI Storage, from Ghost VolumeAttachments to Self-Healing

Overview It was 2:40 AM when the on-call phone rang. A StatefulSet running the order database was doing a rolling update, and two of its three replicas were stuck in ContainerCreating for twenty minutes straight. kubectl describe pod gave only a vague FailedMount, kubectl get events was spamming FailedAttachVolume, and nobody could say which step it was stuck on. I have run into this failure more than once. And the interesting part is that, every time, the root cause was almost never “the storage broke” — the disk was fine, and the cloud console happily showed the volume as healthy....

November 3, 2026 · 37 mins · 7783 words · Xu Baojin

Container Persistent Storage Solution Selection

K8s Storage System: Three-Layer Abstraction The Kubernetes storage system decouples storage consumers from providers through three layers of abstraction. This is the core concept for understanding container persistent storage. According to the K8s storage documentation, the three-layer structure is: ┌──────────────────────────────────────────────────────┐ │ Pod (Consumer) │ │ volumeMounts → volumes │ ├──────────────────────────────────────────────────────┤ │ PVC (Claim) — User requests storage │ │ "I need 10Gi RWO storage" │ ├──────────────────────────────────────────────────────┤ │ StorageClass (Dynamic Provisioning) │ │ "Use ceph-rbd driver, reclaim: Retain" │ ├──────────────────────────────────────────────────────┤ │ PV (Physical Resource) — Actual storage │ │ "10....

February 6, 2024 · 7 mins · 1315 words · ABao