Fix undeterministic node-selection but uses group

role_nftables
Ruakij 2 years ago
parent 590b75ac23
commit fc3d9845d6

@ -3,7 +3,7 @@
# Initialize with internal etcd # Initialize with internal etcd
cluster-init: true cluster-init: true
{% else %} {% else %}
server: https://{{ groups['kubernetes'][0] }}:6443 server: https://{{ hostvars[groups['kubernetes'][0]]['nodeip_ipv4'] }}:6443
{% endif %} {% endif %}
token: '{{ kubernetes.token }}' token: '{{ kubernetes.token }}'

Loading…
Cancel
Save