Interview Prep/Kubernetes/Configuration & Storage

What is the full lifecycle of dynamic provisioning from PVC creation to mount?

AdvancedConceptConfiguration & Storage
Answer

PVC created -> (WaitForFirstConsumer) Pod scheduled -> the external-provisioner sidecar calls CSI CreateVolume -> a PV is created and bound to the PVC -> attach-detach controller or external-attacher calls ControllerPublishVolume (EBS attach to the node) -> kubelet calls CSI node NodeStageVolume (format/mount globally) and NodePublishVolume (bind-mount into the Pod) -> containers start.

All Kubernetes questions Roadmap: Kubernetes core

More on Configuration & Storage