From 7ce0ab6cf7df29ddaa72dbcc046ba73d594545a8 Mon Sep 17 00:00:00 2001 From: "Jose A. Rivera" Date: Mon, 20 Nov 2017 10:48:28 -0600 Subject: GlusterFS: Files and templates for 3.8 Signed-off-by: Jose A. Rivera --- .../templates/v3.8/glusterfs-storageclass.yml.j2 | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 roles/openshift_storage_glusterfs/templates/v3.8/glusterfs-storageclass.yml.j2 (limited to 'roles/openshift_storage_glusterfs/templates/v3.8/glusterfs-storageclass.yml.j2') diff --git a/roles/openshift_storage_glusterfs/templates/v3.8/glusterfs-storageclass.yml.j2 b/roles/openshift_storage_glusterfs/templates/v3.8/glusterfs-storageclass.yml.j2 new file mode 100644 index 000000000..095fb780f --- /dev/null +++ b/roles/openshift_storage_glusterfs/templates/v3.8/glusterfs-storageclass.yml.j2 @@ -0,0 +1,13 @@ +--- +apiVersion: storage.k8s.io/v1 +kind: StorageClass +metadata: + name: glusterfs-{{ glusterfs_name }} +provisioner: kubernetes.io/glusterfs +parameters: + resturl: "http://{% if glusterfs_heketi_is_native %}{{ glusterfs_heketi_route }}{% else %}{{ glusterfs_heketi_url }}:{{ glusterfs_heketi_port }}{% endif %}" + restuser: "admin" +{% if glusterfs_heketi_admin_key is defined %} + secretNamespace: "{{ glusterfs_namespace }}" + secretName: "heketi-{{ glusterfs_name }}-admin-secret" +{%- endif -%} -- cgit v1.2.3