Persistent Volumes and Persistent Volume Claims are two separate objects in Kubernetes: an administrator creates a set of Persistent Volumes and a user creates Persistent Volume Claims to use the storage.
Once the PVC are created, Kubernetes binds the Volumes to Claims based on the request and properties set on the Volume:
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: myclaim
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 500Mi
To view PVC use:
kubectl get pvc
To delete PVC run:
kubectl delete pvc myclaim