Kubernetes - List Storage Classes using kubectl

by
Jeremy Canfield |
Updated: November 06 2023
| 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 storageclass command can be used to list the storage classes that have been created.
~]$ kubectl get storageclass
NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE
csi efs.csi.aws.com Delete Immediate true 33s
gp2 (default) kubernetes.io/aws-ebs Delete WaitForFirstConsumer false 20d
Did you find this article helpful?
If so, consider buying me a coffee over at