--- 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) }} {% endfor %} ports: - port: 1