An access mode specifies how a Kubernetes volume may be mounted and whether one or multiple nodes or pods may read, write, or both. A PersistentVolume (PV) may declare multiple modes, but a PersistentVolumeClaim (PVC) selects only one. section 7.1.3
Choose the mode from the required access pattern:
- ReadWriteOnce (RWO): one node mounts the volume for reading and writing. section 7.1.3
- ReadOnlyMany (ROX): multiple nodes mount the volume for reading only. section 7.1.3
- ReadWriteMany (RWX): multiple nodes mount the volume for reading and writing. section 7.1.3
- ReadWriteOncePod (RWOP): one pod on one node mounts the volume for reading and writing. section 7.1.3
Exam-focused volume selection
Check how many nodes need access, then verify that the volume type supports the selected mode. hostPath supports only ReadWriteOnce; nfs supports ReadWriteOnce, ReadOnlyMany, and ReadWriteMany. emptyDir is temporary pod storage rather than a PV type, so access modes are unavailable. section 7.1.3 section 7.5
Table 7.1 Access modes and their short form, used in the YAML for a PV or PVC
|
Access mode
|
Short form
|
Description
|
|---|---|---|
ReadWriteOnce
|
RWO
|
Only one node can mount the volume and read and write to it.
|
ReadOnlyMany
|
ROX
|
Multiple nodes can mount the volume for reading only.
|
ReadWriteMany
|
RWX
|
Multiple nodes can mount the volume for writing and reading.
|
ReadWriteOncePod
|
RWOP
|
Only one pod on that one node can mount that volume for reading and writing.
|
Use the access-mode table to match each full mode with its YAML short form and mounting behavior. section 7.1.3


