1.使用命令 kubeadm token create --print-join-command --ttl 0
2.在node2节点上执行命令
kubeadm join 172.20.10.11:6443 --token kor1s3.exhttr5ky3bspgrw --discovery-token-ca-cert-hash sha256:fb18d482075c6b9e1525c057ace618b8718fa1c96bb821e0f31c5258f0e19720
1.使用命令 kubeadm token create --print-join-command --ttl 0
2.在node2节点上执行命令
kubeadm join 172.20.10.11:6443 --token kor1s3.exhttr5ky3bspgrw --discovery-token-ca-cert-hash sha256:fb18d482075c6b9e1525c057ace618b8718fa1c96bb821e0f31c5258f0e19720