mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-15 22:34:21 +03:00
allow non existing etcd group (#6797)
When using kubeadm managed etcd, configuring an etcd group can now be skipped.
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
{% else %}
|
||||
{% set cluster_or_master = 'k8s-cluster' %}
|
||||
{% endif %}
|
||||
{%- for item in (groups[cluster_or_master] + groups['etcd'] + groups['calico-rr']|default([]))|unique -%}
|
||||
{%- for item in (groups[cluster_or_master] + groups['etcd']|default([]) + groups['calico-rr']|default([]))|unique -%}
|
||||
{{ hostvars[item]['access_ip'] | default(hostvars[item]['ip'] | default(fallback_ips[item])) }},
|
||||
{%- if item != hostvars[item].get('ansible_hostname', '') -%}
|
||||
{{ hostvars[item]['ansible_hostname'] }},
|
||||
|
||||
Reference in New Issue
Block a user