blob: 48ca5fd39d5909ce2a3e49bf841d68a83a80e818 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
[all]
{% for node in nodes %}
{{ idf.kubespray.hostnames[node.name] }} ansible_host={{ node.interfaces[idf.net_config[engine.pxe_network].interface].address }} ip={{ node.interfaces[idf.net_config[engine.pxe_network].interface].address }}
{% endfor %}
{% for role in ['kube-master', 'etcd', 'kube-node'] %}
[{{ role }}]
{% for node in nodes %}
{% if role in idf.kubespray.nodes_roles[node.name] %}
{{ idf.kubespray.hostnames[node.name] }}
{% endif %}
{% endfor %}
{% endfor %}
[k8s-cluster:children]
kube-master
kube-node
[calico-rr]
|