An access mode specifies how a persistent volume can be mounted and how many Pods can read or write it. A PersistentVolumeClaim declares the desired mode. section 9.1.2
Choose the mode according to the storage workload:
- ReadWriteOnce mounts traditional block storage for read/write access from a single Pod and is the common choice for stateful applications. section 9.1.2
- ReadOnlyMany mounts existing data read-only across multiple Pods. section 9.1.2
- ReadWriteMany allows multiple Pods to read and write simultaneously, typically with file storage such as NFS; only some storage drivers support it. section 9.1.2
MariaDB on a persistent disk
A MariaDB Pod mounts its claim at /var/lib/mysql. The claim requests 2 GiB with ReadWriteOnce, allowing a dynamically provisioned disk-backed PersistentVolume to bind to it.


