Bootstrap FreeKB - Kubernetes - List Persistent Volumes using kubectl
Kubernetes - List Persistent Volumes using kubectl

Updated:   |  Kubernetes articles

If you are not familiar with the kubectl command, check out my article Getting Started with kubectl.

A persistent volume (PV) is the "physical" volume (such as a hard disk drive or solid state drive) on the host machine (node) that stores your persistent data, whereas a persistent volume claim (PVC) is a reference to a persistent volume, used by a pod.

 

The kubectl get persistentvolumes command can be used to list the persistent volumes that have been created.

~]$ kubectl get persistentvolumes
NAME     CAPACITY   ACCESS MODES   RECLAIM POLICY   STATUS      CLAIM   STORAGECLASS   REASON   AGE
csi-pv   10M        RWX            Retain           Available                                   12s

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter 122a96 in the box below so that we can be sure you are a human.