Fix default value for kubelet_secure_addresses (#9355)
This commit is contained in:
parent
ae6c780af6
commit
ad3f503c0c
1 changed files with 4 additions and 1 deletions
|
@ -26,7 +26,10 @@ kubelet_fail_swap_on: true
|
||||||
kubelet_systemd_hardening: false
|
kubelet_systemd_hardening: false
|
||||||
|
|
||||||
# List of secure IPs for kubelet
|
# List of secure IPs for kubelet
|
||||||
kubelet_secure_addresses: "{{ groups['kube_control_plane'] | map('extract', hostvars, ['ansible_host']) | join(' ') }}"
|
kubelet_secure_addresses: >-
|
||||||
|
{%- for host in groups['kube_control_plane'] -%}
|
||||||
|
{{ hostvars[host]['ip'] | default(fallback_ips[host]) }}{{ ' ' if not loop.last else '' }}
|
||||||
|
{%- endfor -%}
|
||||||
|
|
||||||
# Reserve this space for kube resources
|
# Reserve this space for kube resources
|
||||||
kube_memory_reserved: 256Mi
|
kube_memory_reserved: 256Mi
|
||||||
|
|
Loading…
Reference in a new issue