TREE
TREE

Reputation: 1302

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

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?

Upvotes: 3

Views: 284

Answers (1)

Vikas Rathore
Vikas Rathore

Reputation: 8801

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.

Upvotes: 5

Related Questions