summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2015-07-21 18:38:29 -0400
committerColin Walters <walters@verbum.org>2015-07-21 18:38:29 -0400
commit3b8ca06609f6698113fe93c6e229c49ef4b2493c (patch)
tree91725131fb1aaf43fc2e51cd4b7314e06eaef222
parente0211ca67ce18fc9f74d0a9c82cf14a28f395e4d (diff)
downloadopenshift-3b8ca06609f6698113fe93c6e229c49ef4b2493c.tar.gz
openshift-3b8ca06609f6698113fe93c6e229c49ef4b2493c.tar.bz2
openshift-3b8ca06609f6698113fe93c6e229c49ef4b2493c.tar.xz
openshift-3b8ca06609f6698113fe93c6e229c49ef4b2493c.zip
storage/nfs_lvm: Also export as ReadWriteOnce
While NFS supports `ReadWriteMany`, it's very common for pod authors to only need `ReadWriteOnce`. At the moment, kube will not auto-bind a `RWO` claim to a `RWM` volume.
-rw-r--r--roles/openshift_storage_nfs_lvm/templates/nfs.json.j22
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/openshift_storage_nfs_lvm/templates/nfs.json.j2 b/roles/openshift_storage_nfs_lvm/templates/nfs.json.j2
index 0f3d84e75..3c4d2f56c 100644
--- a/roles/openshift_storage_nfs_lvm/templates/nfs.json.j2
+++ b/roles/openshift_storage_nfs_lvm/templates/nfs.json.j2
@@ -11,7 +11,7 @@
"capacity": {
"storage": "{{ osnl_volume_size }}Gi"
},
- "accessModes": [ "ReadWriteMany" ],
+ "accessModes": [ "ReadWriteOnce", "ReadWriteMany" ],
"persistentVolumeReclaimPolicy": "Recycle",
"nfs": {
"Server": "{{ inventory_hostname }}",