From 1f25ee25d6d06b350e06c09c136ca7da25e901d2 Mon Sep 17 00:00:00 2001 From: Martin <1403951401@qq.com> Date: Thu, 20 Mar 2025 09:29:22 +0800 Subject: [PATCH] =?UTF-8?q?[+]=20=E5=A2=9E=E5=8A=A0=E6=9C=80=E5=90=8E=20no?= =?UTF-8?q?de=20=E7=8A=B6=E6=80=81=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- init-k8s.sh | 2 ++ 1 file changed, 2 insertions(+) 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