Persistent Volume in Kubernetes

A PersistentVolume (PV) is a piece of storage in the cluster that has been provisioned by an administrator or dynamically provisioned using Storage Class. It is a resource in the cluster just like a node is a cluster resource. PVs are volume plugins like Volumes.

A Persistent Volume is a cluster-wide pool of storage volumes. The status of a volume after it created but not yet bound to a claim is ‘Available’. Bound status is when a volume is associated with a claim. There are three different access mode configurable on a persistent volume (ReadOnlyMany, ReadWriteMany, ReadWriteOnce).

# list persistent volumes
> kubectl get persistentvolume
> kubectl get pv

# Delete persistent volumes
> kubectl delete pv PV-NAME
  •  
  •  
  •  
  •  

Viet Luu has written 276 articles

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

Buy Me A Coffee

We are thankful for your never ending support.