---
apiVersion: v1
kind: Endpoints
metadata:
  name: heketi-db-{{ glusterfs_name }}-endpoints
  labels:
    glusterfs: heketi-{{ glusterfs_name }}-db-endpoints
    heketi: {{ glusterfs_name }}-db-endpoints
subsets:
- addresses:
{% for node in glusterfs_nodes %}
  - ip: {{ hostvars[node].glusterfs_ip | default(hostvars[node].openshift.common.ip if "openshift" in hostvars[node] else "") }}
{% endfor %}
  ports:
  - port: 1
