Cleanup redundancy

k8s_cluster = kube_control_plane + kube_node
pull/11568/head
Max Gautier 2024-09-23 14:07:28 +02:00
parent ebdc599b05
commit 9f45552201
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ kubelet_systemd_wants_dependencies: []
# List of secure IPs for kubelet
kube_node_addresses: >-
{%- for host in (groups['kube_control_plane'] + groups['kube_node'] + groups['etcd']) | unique -%}
{%- for host in (groups['k8s_cluster'] | union(groups['etcd'])) -%}
{{ hostvars[host]['ip'] | default(fallback_ips[host]) }}{{ ' ' if not loop.last else '' }}
{%- endfor -%}
kubelet_secure_addresses: "localhost link-local {{ kube_pods_subnet }} {{ kube_node_addresses }}"