Verifying Creation of a Kubernetes PersistentVolumeClaim and Persistent Volume
Once the Pod spec is installed, you can verify the status of a PersistentVolumeClaim or a
PersistentVolume by using the Kubernetes
get
command. For
example:$ kubectl get pvc
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
Maprfs-pvc Bound pv-rsojpoapxy 8Mi RWO simple-maprfs 3d
$ kubectl get pv
NAME CAPACITY ACCESS MODES RECLAIM POLICY STATUS CLAIM ...
Pv-rsojpoapxy 8Mi RWO Delete Bound mapr-demo/maprfs-pvc
For an example of creating a PersistentVolumeClaim and a PersistentVolume, see Example: Mounting a PersistentVolume for Static Provisioning Using the FlexVolume Driver.