Skip to content
Snippets Groups Projects
Commit bd9474ba authored by peerapach's avatar peerapach Committed by Kubernetes Prow Robot
Browse files

fix kubeadm-setup when enable access_ip (#4145)

parent 316b7317
No related branches found
No related tags found
No related merge requests found
...@@ -58,7 +58,7 @@ ...@@ -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']) }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment