diff --git a/init-k8s.sh b/init-k8s.sh index 36a6601..1fdc99c 100644 --- a/init-k8s.sh +++ b/init-k8s.sh @@ -290,6 +290,8 @@ kubectl wait --for=condition=Ready pods --all -n calico-system --timeout=300s kubectl wait --for=condition=Ready pods --all -n calico-apiserver --timeout=300s echo "初始化 master $current_ip calico 成功" +kubectl get nodes + OUTPUT=$(kubeadm token create --print-join-command) # 提取 token 和 discovery-token-ca-cert-hash