mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-02 01:58:12 -03:30
* terraform upcloud: Added possibility to set up nodes with only private IPs * terraform upcloud: add support for gateway in private zone * terraform upcloud: split LB proxy protocol config per backend * terraform upcloud: fix flexible plans * terraform upcloud: Removed overview of cluster setup --------- Co-authored-by: davidumea <david.andersson@elastisys.com>
34 lines
722 B
Smarty
34 lines
722 B
Smarty
[all]
|
|
%{ for name, ips in master_ip ~}
|
|
${name} ansible_user=${username} ansible_host=${lookup(ips, "public", ips.private)} ip=${ips.private}
|
|
%{ endfor ~}
|
|
%{ for name, ips in worker_ip ~}
|
|
${name} ansible_user=${username} ansible_host=${lookup(ips, "public", ips.private)} ip=${ips.private}
|
|
%{ endfor ~}
|
|
|
|
[kube_control_plane]
|
|
%{ for name, ips in master_ip ~}
|
|
${name}
|
|
%{ endfor ~}
|
|
|
|
[etcd]
|
|
%{ for name, ips in master_ip ~}
|
|
${name}
|
|
%{ endfor ~}
|
|
|
|
[kube_node]
|
|
%{ for name, ips in worker_ip ~}
|
|
${name}
|
|
%{ endfor ~}
|
|
|
|
[k8s_cluster:children]
|
|
kube_control_plane
|
|
kube_node
|
|
|
|
%{ if length(bastion_ip) > 0 ~}
|
|
[bastion]
|
|
%{ for name, ips in bastion_ip ~}
|
|
bastion ansible_user=${username} ansible_host=${ips.public}
|
|
%{ endfor ~}
|
|
%{ endif ~}
|