Wikipedia: In computer data storage, a volume (or logical drive) is a single accessible storage area with a single file system (typically, though not necessarily, resident on a single partition of a hard disk)
Techtarget: A storage volume is an identifiable unit of data storage
A volume is a unit of data storage
Volume in K8s
Docker volume:
A Docker volume is a directory on disk or in another container
Docker volumes are file systems mounted on Docker containers to preserve data generated by the running container
K8s volume
Volumes within Kubernetes are storage that is tied to the Pod’s lifecycle.
A volume represents a way to store, retrieve, and persist data across pods and through the application lifecycle
A Kubernetes volume is a directory that contains data accessible to containers in a given Pod
A K8s volume can shared by all containers in that pod
Lifecycle of K8s volumes are tied to Pod lifecycle (if pod is destroyed, volume will be deleted)
Volumes can be persistent or non-persistent, and Kubernetes allows containers to request storage resources dynamically, using a mechanism called volume claims
Persistance Volume
A PersistentVolume (PV) is a representation of a cluster-wide storage resource that is linked to a backing storage provider (Azure files, NFS, SMB etc.)
A persistent volume (PV) is a storage resource created and managed by the Kubernetes API that can exist beyond the lifetime of an individual pod
A PersistentVolume (PV) is a piece of storage in the cluster that has been provisioned by an administrator or dynamically provisioned using Storage Classes
PVs are K8s resource in the cluster just like a node is a cluster resource
A virtual storage instance that is added as a volume to the cluster
They are independent of any single pod, breaking them free from the ephemeral life cycle of pods
The PersistentVolume subsystem provides an API for users and administrators that abstracts details of how storage is provided from how it is consumed
Persistance Volume Claim
A PersistentVolumeClaim (PVC) is a request for storage by a user. It is similar to a Pod. Pods consume node resources and PVCs consume PV resources
Persistent Volume Claims (PVC) are requests for K8s storage i.e. PVs