c12s-kubespray/roles/kubernetes-apps/ansible/templates/glusterfs-kubernetes-endpoint.json.j2

25 lines
427 B
Text
Raw Normal View History

{
"kind": "Endpoints",
"apiVersion": "v1",
"metadata": {
"name": "glusterfs-cluster"
},
"subsets": [
{
"addresses": [
{
{% for host in groups['gfs-cluster'] %}
"ip": "{{hostvars[host]['ansible_eth0']['ipv4']['address']}}"{%- if not loop.last %}, {% endif -%}
{% endfor %}
}
],
"ports": [
{
"port": 1
}
]
}
]
}