DevOps · Flashcard
A developer creates a PersistentVolumeClaim requesting 10Gi of storage with StorageClass 'fast-ssd'. The PVC stays in Pending state. Running 'kubectl describe pvc' shows: 'waiting for first consumer to be created before binding'. What does this mean?
Why this is the answer
WaitForFirstConsumer delays volume binding/provisioning until a Pod using the PVC is scheduled. This is critical in multi-zone clusters: if the PV were created immediately, it might end up in zone-a while the Pod is scheduled to zone-b (where the volume isn't accessible). By waiting, the provisioner knows which zone to create the volume in. The alternative mode, Immediate, provisions the volume as soon as the PVC is created.
Read more in the docs