kubectl persistent volumes command¶
In Kubernetes, kubectl is the command-line tool used to manage Persistent Volumes (PV) and Persistent Volume Claims (PVC). The primary command for listing these resources is kubectl get followed by the specific resource type.
Viewing Persistent Volumes¶
To list all Persistent Volumes in the cluster, use the following command^[400-devops__06-Kubernetes__k8s-learning__07.pv-pvc__README.md]:
[kubectl](<./kubectl.md>) get persistentvolumes
Viewing Persistent Volume Claims¶
To list all Persistent Volume Claims, use the following command^[400-devops__06-Kubernetes__k8s-learning__07.pv-pvc__README.md]:
[kubectl](<./kubectl.md>) get persistentvolumeclaims
Sources¶
^[400-devops__06-Kubernetes__k8s-learning__07.pv-pvc__README.md]
Related¶
- [[Persistent Volume]]
- [[Persistent Volume Claim]]
- Kubernetes