Skip to content

Commit 4924944

Browse files
authored
Merge pull request #29770 from Kartik494/ReadWriteOnceBehvaviour
Added a note for improvement in documentation for ReadWriteOnce and ReadWriteOncePod access mode.
2 parents 23d649e + 9fe3e94 commit 4924944

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

content/en/docs/concepts/storage/persistent-volumes.md

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -414,11 +414,22 @@ A PersistentVolume can be mounted on a host in any way supported by the resource
414414

415415
The access modes are:
416416

417-
* ReadWriteOnce -- the volume can be mounted as read-write by a single node
418-
* ReadOnlyMany -- the volume can be mounted read-only by many nodes
419-
* ReadWriteMany -- the volume can be mounted as read-write by many nodes
420-
* ReadWriteOncePod -- the volume can be mounted as read-write by a single Pod.
421-
This is only supported for CSI volumes and Kubernetes version 1.22+.
417+
`ReadWriteOnce`
418+
: the volume can be mounted as read-write by a single node. ReadWriteOnce access mode still can allow multiple pods to access the volume when the pods are running on the same node.
419+
420+
`ReadOnlyMany`
421+
: the volume can be mounted as read-only by many nodes.
422+
423+
`ReadWriteMany`
424+
: the volume can be mounted as read-write by many nodes.
425+
426+
`ReadWriteOncePod`
427+
: the volume can be mounted as read-write by a single Pod. Use ReadWriteOncePod access mode if you want to ensure that only one pod across whole cluster can read that PVC or write to it. This is only supported for CSI volumes and Kubernetes version 1.22+.
428+
429+
430+
431+
The blog article [Introducing Single Pod Access Mode for PersistentVolumes](/blog/2021/09/13/read-write-once-pod-access-mode-alpha/) covers this in more detail.
432+
422433

423434
In the CLI, the access modes are abbreviated to:
424435

0 commit comments

Comments
 (0)