mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-04-11 21:19:28 -02:30
Generate external admin.conf with kubeadm (#4056)
* Generate external admin.conf with kubeadm * Fix apiserver sans
This commit is contained in:
@@ -56,11 +56,11 @@
|
||||
{{ ' '.join(groups['kube-master']) }}
|
||||
{%- if loadbalancer_apiserver is defined %}
|
||||
{{ apiserver_loadbalancer_domain_name }}
|
||||
{%- endif %}
|
||||
{% endif %}
|
||||
{% for host in groups['kube-master'] -%}
|
||||
{%- if hostvars[host]['access_ip'] is defined -%}
|
||||
{{ hostvars[host]['access_ip'] }}
|
||||
{%- endif %}
|
||||
{% endif %}
|
||||
{{ hostvars[host]['ip'] | default(hostvars[host]['ansible_default_ipv4']['address']) }}
|
||||
{%- endfor %}
|
||||
{%- if supplementary_addresses_in_ssl_keys is defined -%}
|
||||
|
||||
Reference in New Issue
Block a user