Storage
PV, PVC and StorageClass
65 / 82

Developers request storage with a PVC; the platform decides what real disk backs it.

You almost never create PersistentVolumes by hand. A StorageClass describes how to create one on demand when a claim appears.

Pod postgres-0volumeMounts: /var/lib/pgPVC data-pg-0requests 20Gi, class fast-ssdStorageClass fast-ssdprovisioner: CSI driver, type: SSDPV pvc-8f2c...20Gi, bound to the PVCReal disk in the platformGKE: Persistent Disk / HyperdiskEKS: EBS gp3 on-prem: Longhorn, Ceph

PVC = request

Namespaced. Says how much, which access mode, which class. This is all the app team writes.

PV = the real volume

Cluster-scoped object that represents an actual disk. Created by the CSI provisioner.

reclaimPolicy

Delete destroys the disk with the PVC. Retain keeps data and needs manual cleanup. Use Retain for critical data.