feat: change add node func (#2835)

feat: change kubeadm join cmd



feat: change add node func



feat: change add node func

Signed-off-by: xuesongzuo@yunify.com <xuesongzuo@yunify.com>
This commit is contained in:
zuoxuesong-worker 2025-11-06 17:14:21 +08:00 committed by GitHub
parent 1843ff66b2
commit 07af071c88
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -43,14 +43,16 @@
roles:
- role: cri
when: or (.add_nodes | default list | empty) (.add_nodes | default list | has .inventory_hostname)
- role: kubernetes/pre-kubernetes
when: or (.add_nodes | default list | empty) (.add_nodes | default list | has .inventory_hostname)
- role: kubernetes/init-kubernetes
when: or (.add_nodes | default list | empty) (.add_nodes | default list | has .inventory_hostname)
- role: kubernetes/pre-kubernetes
when: or (.add_nodes | default list | empty) (.add_nodes | default list | has .inventory_hostname)
- role: kubernetes/join-kubernetes
when: or (.add_nodes | default list | empty) (.add_nodes | default list | has .inventory_hostname)
when:
- or (.add_nodes | default list | empty) (.add_nodes | default list | has .inventory_hostname)
- .kubernetes_install_LoadState.stdout | eq "not-found"
- role: kubernetes/certs
when:
- or (.add_nodes | default list | empty) (.add_nodes | default list | has .inventory_hostname)
- .groups.kube_control_plane | default list | has .inventory_hostname
- .kubernetes.certs.renew
- .kubernetes.certs.renew