🔗 Prerequisite: Chapter 05 (Namespaces, Quotas) — ✅ you’ve mastered it!


Phase 1: Ephemeral Storage (Pod Lifetime)

Temporary storage that dies with the Pod.

  1. empty-dir

    → Basic emptyDir volume (shared between containers in a Pod).

  2. empty-dir-multiple

    → Multiple emptyDir volumes or shared between multiple containers.


Phase 2: Pod Volumes (External Sources)

Mount external storage into Pods.

  1. pod-with-volume.yml

    → Basic volume mount (likely hostPath or config).

  2. pod-with-volume-external.yml

    → Volume from external source (e.g., NFS, cloud disk).


Phase 3: Persistent Volumes (PV/PVC)

Decouple storage from Pods for true persistence.

  1. persistent-volume-nfs.yaml

    → PersistentVolume (PV) backed by NFS.

  2. pvc-nfs.yaml

    → PersistentVolumeClaim (PVC) requesting NFS storage.

  3. storage-class-nfs

    → StorageClass for dynamic NFS provisioning (advanced).


Phase 4: Stateful Workloads

Use PVCs in real applications.