liveBook · Manning

Access mode

As explained in Acing the Certified Kubernetes Administrator Exam, Second Edition

An access mode is a storage configuration specifying how many pods may read from or write to a volume.

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

How Acing the Certified Kubernetes Administrator Exam, Second Edition covers it

How deep it goes
Distinguishes four modes, PV/PVC selection rules, and volume compatibility, without detailing storage-driver internals.
Examples
Uses RWO, ROX, RWX, and RWOP examples, contrasting hostPath, nfs, and emptyDir behavior.
What it assumes
Assumes familiarity with persistent volumes and claims while teaching the four access modes and their practical distinctions.
What you can do after
Configure storage access by selecting a supported mode based on node count and read/write requirements.
How it connects
Connects persistent volumes, persistent volume claims, storage classes, volume types, and reclaim policies.

Also explained in

Compare how 3 books explain access mode →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Acing the Certified Kubernetes Administrator Exam, Second Edition. The section links point to the parts of the book it draws on.