summaryrefslogtreecommitdiffstats
path: root/roles/openshift_storage_glusterfs/templates/v3.8/heketi-endpoints.yml.j2
diff options
context:
space:
mode:
authorJose A. Rivera <jarrpa@redhat.com>2017-11-20 10:48:28 -0600
committerJose A. Rivera <jarrpa@redhat.com>2017-11-20 10:48:28 -0600
commit7ce0ab6cf7df29ddaa72dbcc046ba73d594545a8 (patch)
tree171f86cdf356619ec4e916299dbb10696701922b /roles/openshift_storage_glusterfs/templates/v3.8/heketi-endpoints.yml.j2
parent286f136671c1ce7c9db9d39ba4e699fcd2c5d03f (diff)
downloadopenshift-7ce0ab6cf7df29ddaa72dbcc046ba73d594545a8.tar.gz
openshift-7ce0ab6cf7df29ddaa72dbcc046ba73d594545a8.tar.bz2
openshift-7ce0ab6cf7df29ddaa72dbcc046ba73d594545a8.tar.xz
openshift-7ce0ab6cf7df29ddaa72dbcc046ba73d594545a8.zip
GlusterFS: Files and templates for 3.8
Signed-off-by: Jose A. Rivera <jarrpa@redhat.com>
Diffstat (limited to 'roles/openshift_storage_glusterfs/templates/v3.8/heketi-endpoints.yml.j2')
-rw-r--r--roles/openshift_storage_glusterfs/templates/v3.8/heketi-endpoints.yml.j212
1 files changed, 12 insertions, 0 deletions
diff --git a/roles/openshift_storage_glusterfs/templates/v3.8/heketi-endpoints.yml.j2 b/roles/openshift_storage_glusterfs/templates/v3.8/heketi-endpoints.yml.j2
new file mode 100644
index 000000000..99cbdf748
--- /dev/null
+++ b/roles/openshift_storage_glusterfs/templates/v3.8/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