Pods are made up of multiple containers, so when volume attach to the pod all the containers running inside the pod can access to volume as a result for read and write purpose.

Volumes can be store in Virtual machines and Physical machines. We use PV and PVC to provide storage in Kubernetes.

Persistent Volume (PV)

Kubernetes makes physical storage devices such as our SSDs, NFS servers available to your cluster in the form of objects called Persistent Volumes.

It is a piece of pre-provision storage inside the cluster and provision by Administrator.

Data Inside this volumes can exist beyond the Life-cycle of pod.

A Persistent Volume is an abstraction for the physical storage device that you have attached to the cluster and pods can use this storage space using Persistent Volume Claims.

#kubernetes

How to Create PV and PVC in Kubernetes
1.80 GEEK