Persistent volume claim parameters

Content Software for File CLI Reference

Version
4.2.x
Audience
anonymous
Part Number
MK-HCSF001-03
Parameter Description Limitation
spec.accessModes The volume access mode ReadWriteMany, ReadWriteOnce, or ReadOnlyMany
spec.storageClassName The storage class to use to create the PVC Must be an existing storage class
spec.resources.requests.storage A desired capacity for the volume The capacity quota is not enforced but is stored on the filesystem directory extended attributed for future use

Apply the PersistentVolumeClaim and check it has been created successfully:

# apply 1 the pvc .yaml file
2 $ kubectl apply -f pvc-wekafs-dir.yaml
3 persistentvolumeclaim/pvc-wekafs-dir created
4
5 # check the pvc resource has been created
6 $ kubectl get pvc
7 NAME STATUS VOLUME
8 pvc-wekafs-dir Bound pvc-d00ba0fe-04a0-4916-8fea-ddbbc8f43380
Note: The directory will be created inside the filesystem under csi-volumes directory, starting with the volume name.