Skip to content
Snippets Groups Projects
Unverified Commit 841c61aa authored by Florian Ruynat's avatar Florian Ruynat Committed by GitHub
Browse files

Revert "Fix external lb error (#8299)" (#8360)

This reverts commit 4f2e4524.
parent 157942a4
No related branches found
No related tags found
No related merge requests found
...@@ -60,10 +60,3 @@ pkg_install_retries: 4 ...@@ -60,10 +60,3 @@ pkg_install_retries: 4
# Check if access_ip responds to ping. Set false if your firewall blocks ICMP. # Check if access_ip responds to ping. Set false if your firewall blocks ICMP.
ping_access_ip: true ping_access_ip: true
apiserver_loadbalancer_domain_name_host: |-
{% if inventory_hostname in groups['kube_control_plane'] -%}
127.0.0.1
{%- else -%}
{{ loadbalancer_apiserver.address }}
{%- endif %}
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
lineinfile: lineinfile:
dest: /etc/hosts dest: /etc/hosts
regexp: ".*{{ apiserver_loadbalancer_domain_name }}$" regexp: ".*{{ apiserver_loadbalancer_domain_name }}$"
line: "{{ apiserver_loadbalancer_domain_name_host }} {{ apiserver_loadbalancer_domain_name }}" line: "{{ loadbalancer_apiserver.address }} {{ apiserver_loadbalancer_domain_name }}"
state: present state: present
backup: yes backup: yes
unsafe_writes: yes unsafe_writes: yes
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment