0
0
Kubernetesdevops~10 mins

Access modes (ReadWriteOnce, ReadOnlyMany, ReadWriteMany) in Kubernetes - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to set the access mode to allow a volume to be mounted as read-write by a single node.

Kubernetes
accessModes:
  - [1]
Drag options to blanks, or click blank then click option'
AReadOnlyMany
BReadWriteOnce
CReadWriteMany
DReadOnlyOnce
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing ReadOnlyMany which is read-only access by many nodes.
2fill in blank
medium

Complete the code to set the access mode that allows multiple nodes to mount the volume as read-only.

Kubernetes
accessModes:
  - [1]
Drag options to blanks, or click blank then click option'
AReadWriteOnce
BReadWriteMany
CReadOnlyOnce
DReadOnlyMany
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing ReadWriteMany which allows writing, not just reading.
3fill in blank
hard

Fix the error in the access mode to allow multiple nodes to mount the volume with read-write access.

Kubernetes
accessModes:
  - [1]
Drag options to blanks, or click blank then click option'
AReadWriteMany
BReadWriteOnce
CReadOnlyOnce
DReadOnlyMany
Attempts:
3 left
💡 Hint
Common Mistakes
Using ReadWriteOnce which restricts write access to a single node.
4fill in blank
hard

Fill both blanks to complete the PersistentVolume spec with access modes for single-node read-write and multi-node read-only.

Kubernetes
spec:
  accessModes:
    - [1]
    - [2]
Drag options to blanks, or click blank then click option'
AReadWriteOnce
BReadOnlyMany
CReadWriteMany
DReadOnlyOnce
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up read-write and read-only modes.
5fill in blank
hard

Fill all three blanks to define a PersistentVolumeClaim that requests a volume with multi-node read-write access and a storage size of 10Gi.

Kubernetes
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: example-pvc
spec:
  accessModes:
    - [1]
  resources:
    requests:
      storage: [2]
  storageClassName: [3]
Drag options to blanks, or click blank then click option'
AReadWriteOnce
BReadWriteMany
C10Gi
Dstandard
Attempts:
3 left
💡 Hint
Common Mistakes
Using ReadWriteOnce which restricts to one node.
Forgetting to specify storage size with units.