summaryrefslogtreecommitdiffstats
path: root/roles/openshift_storage_glusterfs/templates/v3.6/gluster-block-storageclass.yml.j2
blob: 02ed8fa8d2bd2e1069814a9a8bd0ee6fdecacc7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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 -%}