What does it mean for a PersistentVolumeClaim to have multiple accessModes?

Viewed 95

I understand what the accessModes individually do, but I was surprised to see that the configuration section for accessModes is an array, rather than a simple key-value. The documentation is far from clear, and as far as I can tell doesn't even mention having more than one.

What does it mean for a PersistentVolumeClaim to specify more than one AccessMode?

1 Answers

A persistent volume can be mounted by multiple pods on the different nodes at the same. One pod can mount a persistent volume with only one access mode at a time and other pods can mount the same persistent volume with different access modes. But a pod can mount the persistent volume with only one access mode.

For more, you may read this explanation.

Related