mirror of
https://github.com/kubesphere/kubekey.git
synced 2025-12-26 01:22:51 +00:00
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:
parent
1843ff66b2
commit
07af071c88
|
|
@ -43,14 +43,16 @@
|
||||||
roles:
|
roles:
|
||||||
- role: cri
|
- role: cri
|
||||||
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)
|
||||||
|
- role: kubernetes/pre-kubernetes
|
||||||
|
when: or (.add_nodes | default list | empty) (.add_nodes | default list | has .inventory_hostname)
|
||||||
- role: kubernetes/init-kubernetes
|
- role: kubernetes/init-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)
|
||||||
- role: kubernetes/pre-kubernetes
|
|
||||||
when: or (.add_nodes | default list | empty) (.add_nodes | default list | has .inventory_hostname)
|
|
||||||
- role: kubernetes/join-kubernetes
|
- 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
|
- role: kubernetes/certs
|
||||||
when:
|
when:
|
||||||
- or (.add_nodes | default list | empty) (.add_nodes | default list | has .inventory_hostname)
|
- or (.add_nodes | default list | empty) (.add_nodes | default list | has .inventory_hostname)
|
||||||
- .groups.kube_control_plane | default list | has .inventory_hostname
|
- .groups.kube_control_plane | default list | has .inventory_hostname
|
||||||
- .kubernetes.certs.renew
|
- .kubernetes.certs.renew
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue