Kubernetes storage · Interactive diagram

Dynamic provisioning: follow the relationships

Press Play for the flow, or Next to study one phase at a time. Scroll horizontally inside the diagram to read its labels. This is a configuration/provisioning flow, not the application's read/write data path.

Dynamic provisioning: Pod, PVC, StorageClass, CSI, PV A Pod uses a PVC; the PVC names a StorageClass whose CSI provisioner creates a real disk and a matching PV, and the PVC binds one-to-one to that PV. PATH A · DYNAMIC PROVISIONING (STORAGE IS CREATED FOR YOU) KUBERNETES CLUSTER OUTSIDE THE CLUSTER USES CLAIM NAMES CLASS NAMES DRIVER CREATES DISK CREATES PV POINTS TO BINDS 1:1 A PVC is a request for storage. A PV is the volume that fills it. Each PVC binds to exactly one PV. POD Pod my-app mounts /data PVC PersistentVolumeClaim my-data · 10Gi class: fast-ssd SC StorageClass name: fast-ssd provisioner: ebs.csi.aws.com CSI CSI Provisioner external-provisioner + CSI driver DISK Real storage cloud disk / SAN e.g. AWS EBS PV PersistentVolume pvc-3f2a… · 10Gi created automatically LEGEND Your workload Your storage request Cluster config / controller Volume object Outside storage Binding Storage API call Refers to
←/→ step · Space play/pause · R replay · Home/End jump

  1. 1. Pod uses a claim

    The Pod refers to my-data and mounts its storage at /data. This arrow is a configuration reference, not a disk request sent by the Pod.

  2. 2. PVC names a class

    The PVC requests 10Gi and names fast-ssd. The StorageClass is a policy, not the disk itself.

  3. 3. Class selects the driver

    The provisioner field identifies a driver, such as ebs.csi.aws.com. Provisioning timing also depends on volumeBindingMode.

  4. 4. Provisioner creates storage

    The external-provisioner works with the CSI driver to request a real volume from the storage system.

  5. 5. A PV represents the volume

    The provisioner creates a PersistentVolume object that references the new storage. A PV is the Kubernetes representation of that storage.

  6. 6. PVC and PV bind

    Kubernetes binds the claim and volume one-to-one. Scheduling, attachment where needed, and mounting then make the volume usable by the Pod.