Persistent Volumes (PV)
A PersistentVolume (PV) is a cluster-scoped resource that represents an actual physical or cloud storage volume.
1. Access Modes
Section titled “1. Access Modes”- ReadWriteOnce (RWO): Can be mounted as read-write by a single node.
- ReadOnlyMany (ROX): Can be mounted read-only by multiple nodes.
- ReadWriteMany (RWX): Can be mounted as read-write by many nodes simultaneously (e.g., NFS, AWS EFS).
- ReadWriteOncePod (RWOP): Can be mounted as read-write by a single Pod across the entire cluster.
2. Reclaim Policies
Section titled “2. Reclaim Policies”- Retain: Keeps the persistent volume and data intact after the PVC is deleted.
- Delete: Automatically deletes the underlying cloud storage disk when the PVC is deleted.