summaryrefslogtreecommitdiffstats
path: root/roles/openshift_storage_glusterfs/templates/v1.5/heketi-endpoints.yml.j2
diff options
context:
space:
mode:
authorchinacoolhacker <chinacoolhacker@gmail.com>2017-10-25 00:27:19 +0300
committerchinacoolhacker <chinacoolhacker@gmail.com>2017-10-25 23:07:50 +0300
commit58357db1b6b6f04f27721c1b9f986325a470c773 (patch)
tree23c59a4040deaee42df2ae1f289ec50a00295131 /roles/openshift_storage_glusterfs/templates/v1.5/heketi-endpoints.yml.j2
parentabb5b1c5b899a121b8d2990b33880c93cd46ac88 (diff)
downloadopenshift-58357db1b6b6f04f27721c1b9f986325a470c773.tar.gz
openshift-58357db1b6b6f04f27721c1b9f986325a470c773.tar.bz2
openshift-58357db1b6b6f04f27721c1b9f986325a470c773.tar.xz
openshift-58357db1b6b6f04f27721c1b9f986325a470c773.zip
Glusterfs storage templates for v1.5 added
Diffstat (limited to 'roles/openshift_storage_glusterfs/templates/v1.5/heketi-endpoints.yml.j2')
-rw-r--r--roles/openshift_storage_glusterfs/templates/v1.5/heketi-endpoints.yml.j212
1 files changed, 12 insertions, 0 deletions
diff --git a/roles/openshift_storage_glusterfs/templates/v1.5/heketi-endpoints.yml.j2 b/roles/openshift_storage_glusterfs/templates/v1.5/heketi-endpoints.yml.j2
new file mode 100644
index 000000000..99cbdf748
--- /dev/null
+++ b/roles/openshift_storage_glusterfs/templates/v1.5/heketi-endpoints.yml.j2
@@ -0,0 +1,12 @@
+---
+apiVersion: v1
+kind: Endpoints
+metadata:
+ name: heketi-db-{{ glusterfs_name }}-endpoints
+subsets:
+- addresses:
+{% for node in glusterfs_nodes %}
+ - ip: {{ hostvars[node].glusterfs_ip | default(hostvars[node].openshift.common.ip) }}
+{% endfor %}
+ ports:
+ - port: 1