Browse Source

Cleanup redundancy

k8s_cluster = kube_control_plane + kube_node
pull/11568/head
Max Gautier 2 months ago
parent
commit
9f45552201
Failed to extract signature
1 changed files with 1 additions and 1 deletions
  1. 2
      roles/kubernetes/node/defaults/main.yml

2
roles/kubernetes/node/defaults/main.yml

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

Loading…
Cancel
Save