023108a733
* Refactor calico-rr to run in k8s cluster with taint Change-Id: I75a3169ff5b36ce8302fc7ef1c32d3eb697b5afa * add preinstall checks * rework calico/rr role Change-Id: I2f0a7e6cb77cf91ad4a615923680760d2e5d9ca8 * add empty calico-rr group Change-Id: I006c0a60db9b72d02245bf8fdfabcf982144a5ad
51 lines
999 B
Django/Jinja
51 lines
999 B
Django/Jinja
{% for instance in droplets.results %}
|
|
{{instance.droplet.name}} ansible_ssh_host={{instance.droplet.ip_address}}
|
|
{% endfor %}
|
|
|
|
{% if mode is defined and mode == "separate" %}
|
|
[kube-master]
|
|
{{droplets.results[0].droplet.name}}
|
|
|
|
[kube-node]
|
|
{{droplets.results[1].droplet.name}}
|
|
|
|
[etcd]
|
|
{{droplets.results[2].droplet.name}}
|
|
|
|
[vault]
|
|
{{droplets.results[2].droplet.name}}
|
|
{% elif mode is defined and mode == "ha" %}
|
|
[kube-master]
|
|
{{droplets.results[0].droplet.name}}
|
|
{{droplets.results[1].droplet.name}}
|
|
|
|
[kube-node]
|
|
{{droplets.results[2].droplet.name}}
|
|
|
|
[etcd]
|
|
{{droplets.results[1].droplet.name}}
|
|
{{droplets.results[2].droplet.name}}
|
|
|
|
[vault]
|
|
{{droplets.results[1].droplet.name}}
|
|
{{droplets.results[2].droplet.name}}
|
|
{% else %}
|
|
[kube-master]
|
|
{{droplets.results[0].droplet.name}}
|
|
|
|
[kube-node]
|
|
{{droplets.results[1].droplet.name}}
|
|
|
|
[etcd]
|
|
{{droplets.results[0].droplet.name}}
|
|
|
|
[vault]
|
|
{{droplets.results[0].droplet.name}}
|
|
{% endif %}
|
|
|
|
[calico-rr]
|
|
|
|
[k8s-cluster:children]
|
|
kube-node
|
|
kube-master
|
|
calico-rr
|