add support for Dual Stack node InternalIP (#8542)

This commit is contained in:
kakkotetsu
2022-02-15 17:28:02 +09:00
committed by GitHub
parent 31d4a38f09
commit 98d5d0cdd5
2 changed files with 4 additions and 1 deletions

View File

@@ -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') }}"