Volumes Intro
Container disks are ephemeral
Files written only inside a container disappear when the pod is replaced. Volumes provide shared or persistent storage.
emptyDir for scratch space
An emptyDir volume lasts for the life of the pod—useful for caches shared by containers in that pod.
PersistentVolumeClaims (idea)
Apps request storage with a PVC; the cluster binds storage according to its provisioners. Local tools may use a default StorageClass.
kubectl get storageclass
kubectl get pvc -A
Keep expectations local
On Minikube/kind you can practice mounting volumes. Production storage classes and backups are a separate ops topic.
Comments
One comment per signed-in account. Comments are saved with this page’s URL.