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
98d5d0cd
Unverified
Commit
98d5d0cd
authored
3 years ago
by
kakkotetsu
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
add support for Dual Stack node InternalIP (#8542)
parent
31d4a38f
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/vars.md
+3
-0
3 additions, 0 deletions
docs/vars.md
roles/kubernetes/node/defaults/main.yml
+1
-1
1 addition, 1 deletion
roles/kubernetes/node/defaults/main.yml
with
4 additions
and
1 deletion
docs/vars.md
+
3
−
0
View file @
98d5d0cd
...
...
@@ -37,6 +37,9 @@ Some variables of note include:
public/floating and private IPs.
*
*ansible_default_ipv4.address*
- Not Kubespray-specific, but it is used if ip
and access_ip are undefined
*
*ip6*
- IPv6 address to use for binding services. (host var)
If
*enable_dual_stack_networks*
is set to
``true``
and
*ip6*
is defined,
kubelet's
``--node-ip``
and node's
``InternalIP``
will be the combination of
*ip*
and
*ip6*
.
*
*loadbalancer_apiserver*
- If defined, all hosts will connect to this
address instead of localhost for kube_control_planes and kube_control_plane[0] for
kube_nodes. See more details in the
...
...
This diff is collapsed.
Click to expand it.
roles/kubernetes/node/defaults/main.yml
+
1
−
1
View file @
98d5d0cd
...
...
@@ -3,7 +3,7 @@
kube_apiserver_insecure_bind_address
:
127.0.0.1
# advertised host IP for kubelet. This affects network plugin config. Take caution
kubelet_address
:
"
{{
ip
|
default(fallback_ips[inventory_hostname])
}}"
kubelet_address
:
"
{{
ip
|
default(fallback_ips[inventory_hostname])
}}{{
','
+
ip6
if
enable_dual_stack_networks
and
ip6
is
defined
}}"
# bind address for kubelet. Set to 0.0.0.0 to listen on all interfaces
kubelet_bind_address
:
"
{{
ip
|
default('0.0.0.0')
}}"
...
...
This diff is collapsed.
Click to expand it.
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