glusterfs-storageclass.yml.j2 495 B

12345678910111213
  1. ---
  2. apiVersion: storage.k8s.io/v1
  3. kind: StorageClass
  4. metadata:
  5. name: glusterfs-{{ glusterfs_name }}
  6. provisioner: kubernetes.io/glusterfs
  7. parameters:
  8. resturl: "http://{% if glusterfs_heketi_is_native %}{{ glusterfs_heketi_route }}{% else %}{{ glusterfs_heketi_url }}:{{ glusterfs_heketi_port }}{% endif %}"
  9. restuser: "admin"
  10. {% if glusterfs_heketi_admin_key is defined %}
  11. secretNamespace: "{{ glusterfs_namespace }}"
  12. secretName: "heketi-{{ glusterfs_name }}-admin-secret"
  13. {%- endif -%}