Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kubespray
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Kubespray
Commits
4f2e4524
Unverified
Commit
4f2e4524
authored
3 years ago
by
singeleaf
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix external lb error (#8299)
parent
8ac510e4
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
roles/kubernetes/preinstall/defaults/main.yml
+7
-0
7 additions, 0 deletions
roles/kubernetes/preinstall/defaults/main.yml
roles/kubernetes/preinstall/tasks/0090-etchosts.yml
+1
-1
1 addition, 1 deletion
roles/kubernetes/preinstall/tasks/0090-etchosts.yml
with
8 additions
and
1 deletion
roles/kubernetes/preinstall/defaults/main.yml
+
7
−
0
View file @
4f2e4524
...
@@ -60,3 +60,10 @@ pkg_install_retries: 4
...
@@ -60,3 +60,10 @@ 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 %}
This diff is collapsed.
Click to expand it.
roles/kubernetes/preinstall/tasks/0090-etchosts.yml
+
1
−
1
View file @
4f2e4524
...
@@ -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
:
"
{{
loadbalancer_
apiserver.address
}}
{{
apiserver_loadbalancer_domain_name
}}"
line
:
"
{{
apiserver_
loadbalancer_
domain_name_host
}}
{{
apiserver_loadbalancer_domain_name
}}"
state
:
present
state
:
present
backup
:
yes
backup
:
yes
unsafe_writes
:
yes
unsafe_writes
:
yes
...
...
This diff is collapsed.
Click to expand it.
Ghost User
@ghost
mentioned in commit
841c61aa
·
3 years ago
mentioned in commit
841c61aa
mentioned in commit 841c61aaa167199622edbefeddeb241f546b1269
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment