Skip to content

Commit

Permalink
Revert "Fix external lb error (#8299)"
Browse files Browse the repository at this point in the history
This reverts commit 4f2e452.
  • Loading branch information
floryut authored Jan 3, 2022
1 parent 157942a commit 153506d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions roles/kubernetes/preinstall/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,3 @@ pkg_install_retries: 4

# Check if access_ip responds to ping. Set false if your firewall blocks ICMP.
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 %}
2 changes: 1 addition & 1 deletion roles/kubernetes/preinstall/tasks/0090-etchosts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
lineinfile:
dest: /etc/hosts
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
backup: yes
unsafe_writes: yes
Expand Down

0 comments on commit 153506d

Please sign in to comment.