CKAD Part17 – Volumes, PersistentVolumes & PersistentVolumeClaims
Kubernetes Volumes Internal container storage is ephemeral, which means that it exits only for the lifetime of the container. When the container is stopped any data written inside the container is lost. Volumes provide a means of storing data beyond the life of the container. The Pod definition below contains an emptyDir VolumeĀ An emptyDir is an empty directory that is created when a Pod is assigned to a Node. All containers in a Pod can read and write in the emptyDir Volume which makes useful for multi container Pod use cases. apiVersion: v1 kind: Pod metadata: name: pod-volume-1 spec: containers: - name: volume-container-1 image: [...]