summaryrefslogtreecommitdiffstats
path: root/roles/openshift_storage_glusterfs/templates/v3.9/gluster-block-storageclass.yml.j2
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2018-01-31 11:55:21 -0800
committerGitHub <noreply@github.com>2018-01-31 11:55:21 -0800
commit73701d53f481b4d5886eb9ac4f89bfd337efefea (patch)
treed673a4e5600781a4010d599e908529910de45573 /roles/openshift_storage_glusterfs/templates/v3.9/gluster-block-storageclass.yml.j2
parent510b5ac41308225f01be96309eda6efc67a90467 (diff)
parent2573825c06e9d3a5601b6c1492f71fd0b70b2578 (diff)
downloadopenshift-73701d53f481b4d5886eb9ac4f89bfd337efefea.tar.gz
openshift-73701d53f481b4d5886eb9ac4f89bfd337efefea.tar.bz2
openshift-73701d53f481b4d5886eb9ac4f89bfd337efefea.tar.xz
openshift-73701d53f481b4d5886eb9ac4f89bfd337efefea.zip
Merge pull request #6922 from mjudeikis/glusterfs-block-storage
Automatic merge from submit-queue. Glusterfs block storage ansible support GlusterBlock support in our ansible for glusterfs role TODO: - [ ] checking if only one SC is set default - [ ] validate if mpath on nodes is configured - [ ] add check for rhel vs atomic - [x] make sure rpcbind is running and enabled BEFORE we even start glusterfs pods - [x] enable mpath - [ ] validate kernel module availability @ckyriakidou @jarrpa
Diffstat (limited to 'roles/openshift_storage_glusterfs/templates/v3.9/gluster-block-storageclass.yml.j2')
-rw-r--r--roles/openshift_storage_glusterfs/templates/v3.9/gluster-block-storageclass.yml.j219
1 files changed, 19 insertions, 0 deletions
diff --git a/roles/openshift_storage_glusterfs/templates/v3.9/gluster-block-storageclass.yml.j2 b/roles/openshift_storage_glusterfs/templates/v3.9/gluster-block-storageclass.yml.j2
new file mode 100644
index 000000000..02ed8fa8d
--- /dev/null
+++ b/roles/openshift_storage_glusterfs/templates/v3.9/gluster-block-storageclass.yml.j2
@@ -0,0 +1,19 @@
+---
+apiVersion: storage.k8s.io/v1
+kind: StorageClass
+metadata:
+ name: glusterfs-{{ glusterfs_name }}-block
+{% if glusterfs_block_storageclass_default is defined and glusterfs_block_storageclass_default %}
+ annotations:
+ storageclass.kubernetes.io/is-default-class: "true"
+{% endif %}
+provisioner: gluster.org/glusterblock
+parameters:
+ resturl: "http://{% if glusterfs_heketi_is_native %}{{ glusterfs_heketi_route }}{% else %}{{ glusterfs_heketi_url }}:{{ glusterfs_heketi_port }}{% endif %}"
+ restuser: "admin"
+ chapauthenabled: "true"
+ hacount: "3"
+{% if glusterfs_heketi_admin_key is defined %}
+ restsecretnamespace: "{{ glusterfs_namespace }}"
+ restsecretname: "heketi-{{ glusterfs_name }}-admin-secret-block"
+{%- endif -%}