Complete the code to set the access mode to allow a volume to be mounted as read-write by a single node.
accessModes:
- [1]The ReadWriteOnce access mode allows the volume to be mounted as read-write by a single node.
Complete the code to set the access mode that allows multiple nodes to mount the volume as read-only.
accessModes:
- [1]ReadOnlyMany allows multiple nodes to mount the volume but only in read-only mode.
Fix the error in the access mode to allow multiple nodes to mount the volume with read-write access.
accessModes:
- [1]ReadWriteMany allows multiple nodes to mount the volume with read-write access simultaneously.
Fill both blanks to complete the PersistentVolume spec with access modes for single-node read-write and multi-node read-only.
spec:
accessModes:
- [1]
- [2]The spec allows ReadWriteOnce for single-node read-write and ReadOnlyMany for multi-node read-only access.
Fill all three blanks to define a PersistentVolumeClaim that requests a volume with multi-node read-write access and a storage size of 10Gi.
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: example-pvc
spec:
accessModes:
- [1]
resources:
requests:
storage: [2]
storageClassName: [3]The claim requests ReadWriteMany access mode for multi-node read-write, storage size 10Gi, and uses the standard storage class.