diff options
author | Saravanakumar Arumugam <sarumuga@redhat.com> | 2018-02-09 16:18:52 +0530 |
---|---|---|
committer | Saravanakumar Arumugam <sarumuga@redhat.com> | 2018-02-12 14:09:33 +0530 |
commit | 27c60fa67aa0c62e48165a40c78223e264070e9a (patch) | |
tree | 7e27572308c5beb3bb38db1e8ca2c2126440a8a3 /roles/openshift_storage_glusterfs/templates/v3.6/gluster-block-storageclass.yml.j2 | |
parent | 15827bd85421fc8fe09487d06efc013292664147 (diff) | |
download | openshift-27c60fa67aa0c62e48165a40c78223e264070e9a.tar.gz openshift-27c60fa67aa0c62e48165a40c78223e264070e9a.tar.bz2 openshift-27c60fa67aa0c62e48165a40c78223e264070e9a.tar.xz openshift-27c60fa67aa0c62e48165a40c78223e264070e9a.zip |
Backport changes for glusterfs, heketi, s3 and block templates
Signed-off-by: Saravanakumar Arumugam <sarumuga@redhat.com>
Diffstat (limited to 'roles/openshift_storage_glusterfs/templates/v3.6/gluster-block-storageclass.yml.j2')
-rw-r--r-- | roles/openshift_storage_glusterfs/templates/v3.6/gluster-block-storageclass.yml.j2 | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/roles/openshift_storage_glusterfs/templates/v3.6/gluster-block-storageclass.yml.j2 b/roles/openshift_storage_glusterfs/templates/v3.6/gluster-block-storageclass.yml.j2 new file mode 100644 index 000000000..02ed8fa8d --- /dev/null +++ b/roles/openshift_storage_glusterfs/templates/v3.6/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 -%} |