ReadWriteOnce is a persistent-volume access mode for storage mounted with read-write access by one Pod at a time. It suits traditional block storage, such as a database disk, rather than shared file storage. section 9.1.2
Choose the access mode according to how Pods must use the data:
- Use ReadWriteOnce for a traditional hard-drive-like volume used by one Pod. section 9.1.2
- Use ReadOnlyMany for existing data mounted read-only by multiple Pods. section 9.1.2
- Use ReadWriteMany for file storage such as NFS when multiple Pods must read and write concurrently. section 9.1.2
MariaDB PersistentVolumeClaim
A MariaDB Pod mounts a PersistentVolumeClaim at /var/lib/mysql. The claim requests 2 GiB with accessModes set to ReadWriteOnce. With dynamic provisioning, Kubernetes creates a suitable PersistentVolume and binds it to the claim; without it, an administrator must provide a matching PersistentVolume. section 9.1.2

