mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-14 22:04:43 +03:00
fix kubeadm-setup when enable access_ip (#4145)
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
316b73178d
commit
bd9474bafd
@@ -58,7 +58,7 @@
|
|||||||
{{ apiserver_loadbalancer_domain_name }}
|
{{ apiserver_loadbalancer_domain_name }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% for host in groups['kube-master'] -%}
|
{% for host in groups['kube-master'] -%}
|
||||||
{%- if hostvars[host]['access_ip'] is defined -%}
|
{%- if hostvars[host]['access_ip'] is defined %}
|
||||||
{{ hostvars[host]['access_ip'] }}
|
{{ hostvars[host]['access_ip'] }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{{ hostvars[host]['ip'] | default(hostvars[host]['ansible_default_ipv4']['address']) }}
|
{{ hostvars[host]['ip'] | default(hostvars[host]['ansible_default_ipv4']['address']) }}
|
||||||
|
|||||||
Reference in New Issue
Block a user