fix kubeadm-setup when enable access_ip (#4145)
This commit is contained in:
parent
316b73178d
commit
bd9474bafd
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@
|
|||
{{ apiserver_loadbalancer_domain_name }}
|
||||
{% endif %}
|
||||
{% for host in groups['kube-master'] -%}
|
||||
{%- if hostvars[host]['access_ip'] is defined -%}
|
||||
{%- if hostvars[host]['access_ip'] is defined %}
|
||||
{{ hostvars[host]['access_ip'] }}
|
||||
{% endif %}
|
||||
{{ hostvars[host]['ip'] | default(hostvars[host]['ansible_default_ipv4']['address']) }}
|
||||
|
|
Loading…
Reference in a new issue