Creating a PersistentVolumeClaim (PVC)
Create a PersistentVolumeClaim (PVC) YAML file for a persistent volume (PV).
About this task
A PVC is a request for abstract storage resources by a user. The PVC is then be associated to a Pod resource to provision a PersistentVolume, which is backed with a Ceph Block Device (RBD) image.
- Specify the volumeMode for
Block
for supporting raw block device-based volumes. - Specify the accessMode with one of the following values:
ReadWriteOnce
,ReadWriteMany
, orReadOnlyMany
. - Be sure to use the same StorageClass as defined in Creating a StorageClass when configuring the storageClassName.