OpenShift - List Storage Classes using the oc get storageclass command

by
Jeremy Canfield |
Updated: August 05 2022
| OpenShift articles
If you are not familiar with the oc command, refer to OpenShift - Getting Started with the oc command.
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 oc get storageclass command can be used to list the storage classes that have been created.
~]$ oc get storageclass
NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE
file-storage (default) csi.trident.netapp.io Delete Immediate true 377d
thin kubernetes.io/vsphere-volume Delete Immediate false 381d
Did you find this article helpful?
If so, consider buying me a coffee over at