summaryrefslogtreecommitdiffstats
path: root/roles/openshift_storage_glusterfs/templates/v3.6/heketi-endpoints.yml.j2
diff options
context:
space:
mode:
authorOpenShift Bot <eparis+openshiftbot@redhat.com>2017-06-14 12:00:28 -0400
committerGitHub <noreply@github.com>2017-06-14 12:00:28 -0400
commitf7d8bd196c4cd7fed7de94a9ab87abd3295b5b06 (patch)
tree52bc9476d98c5e441bf73a510c831cff256f4bf6 /roles/openshift_storage_glusterfs/templates/v3.6/heketi-endpoints.yml.j2
parent256e6586a1bc1cfd134c2290251ff9288df3dcd4 (diff)
parent97e1bc9436a757b2ffd802de531073f4b1b95c48 (diff)
downloadopenshift-f7d8bd196c4cd7fed7de94a9ab87abd3295b5b06.tar.gz
openshift-f7d8bd196c4cd7fed7de94a9ab87abd3295b5b06.tar.bz2
openshift-f7d8bd196c4cd7fed7de94a9ab87abd3295b5b06.tar.xz
openshift-f7d8bd196c4cd7fed7de94a9ab87abd3295b5b06.zip
Merge pull request #4245 from jarrpa/glusterfs-fixes
Merged by openshift-bot
Diffstat (limited to 'roles/openshift_storage_glusterfs/templates/v3.6/heketi-endpoints.yml.j2')
-rw-r--r--roles/openshift_storage_glusterfs/templates/v3.6/heketi-endpoints.yml.j212
1 files changed, 12 insertions, 0 deletions
diff --git a/roles/openshift_storage_glusterfs/templates/v3.6/heketi-endpoints.yml.j2 b/roles/openshift_storage_glusterfs/templates/v3.6/heketi-endpoints.yml.j2
new file mode 100644
index 000000000..99cbdf748
--- /dev/null
+++ b/roles/openshift_storage_glusterfs/templates/v3.6/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