What does the ReadWriteOnce access mode mean?
kind: PersistentVolumeClaim
spec:
accessModes: [ReadWriteOnce]
resources:
requests: { storage: 10Gi }
- It is mounted read-write by a single node
- Only one pod in the cluster may ever use it
- It can be written once, then is read-only
- Every node may read it, one node may write
RWO limits the volume to one node at a time; several pods on that node can still share it. ReadWriteOncePod is the mode that restricts it to a single pod.
Play DevOps ▸