← Kubernetes learning path
Kubernetes · Module 6 of 10

Storage

Persist data with volumes and persistent volume claims.

📖 Key ideas

  1. Container files are lost when pods restart.
  2. Volumes attach storage to pods.
  3. PersistentVolume (PV) is storage; PersistentVolumeClaim (PVC) requests it.
  4. StorageClasses provision disks dynamically.
  5. StatefulSets give stable identity and storage for databases.
💡 Real-life example: A PVC is a parking pass request; the PV is the actual parking spot assigned.
VolumeStorage attached to a pod
PVCRequest for persistent storage
StorageClassType of dynamically provisioned storage
StatefulSetWorkload for stateful apps