Kubernetes volume

A directory declared in a pod spec and mounted into its containers, backed by anything from temporary node disk to network storage.

In more detail

The pod lists volumes, and each container mounts the ones it needs at a mountPath. Containers in the same pod can share files through a volume. Whether data outlives the pod depends on the volume type: emptyDir does not, a PersistentVolumeClaim does.

Related terms

Taught in

References