RWO volume could be mounted by multiple pods
Environment
- OpenShift Enterprise
- 3.x
Issue
- I created RWO volume, but it could be mounted by multiple pods.
Resolution
Kubernetes(OpenShift)'s RWX/RWO/ROX does NOT have access control for the volume. RWX/RWO/ROX is only used for matching between PV and PVC. (e.g if you set RWO to a PVC, the PVC always use PV which has RWO.)
You need to use your Storage's access control feature.
You can refer to upstream docs Concurrent access guarantees for shared storage
If a PV is assigned a iSCSI, Fibre Channel, or NFS mount point and that PV is used by two pods on different nodes simultaneously, concurrent access may result in corruption, even if the PV or PVC is identified as "read write once". PVC consumers must ensure these volume types are never referenced from multiple pods without some external synchronization.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
