|
|
@ -10,7 +10,9 @@ subjectAltName = @alt_names |
|
|
|
DNS.1 = kubernetes |
|
|
|
DNS.2 = kubernetes.default |
|
|
|
DNS.3 = kubernetes.default.svc.{{ dns_domain }} |
|
|
|
{% if loadbalancer_apiserver is defined and apiserver_loadbalancer_domain_name is defined %} |
|
|
|
DNS.4 = {{ apiserver_loadbalancer_domain_name }} |
|
|
|
{% endif %} |
|
|
|
{% for host in groups['kube-master'] %} |
|
|
|
IP.{{ loop.index }} = {{ hostvars[host]['ip'] | default(hostvars[host]['ansible_default_ipv4']['address']) }} |
|
|
|
{% endfor %} |
|
|
|