From 1731bc674674112c66ff362f186ede3ac66d28d0 Mon Sep 17 00:00:00 2001 From: "huanqing.shao" Date: Mon, 19 Aug 2019 11:02:10 +0800 Subject: [PATCH] init-master.sh --- .vuepress/public/install-script/init-master.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.vuepress/public/install-script/init-master.sh b/.vuepress/public/install-script/init-master.sh index f4280ac..c4302fa 100644 --- a/.vuepress/public/install-script/init-master.sh +++ b/.vuepress/public/install-script/init-master.sh @@ -22,9 +22,10 @@ rm -rf /root/.kube/ mkdir /root/.kube/ cp -i /etc/kubernetes/admin.conf /root/.kube/config +# 安装 calico 网络插件 wget https://docs.projectcalico.org/v3.8/manifests/calico.yaml - sed -i /s"192.168.0.0/16"/"${POD_SUBNET}"/g calico.yaml +kubectl apply -f calico.yaml # 执行如下命令,等待 3-10 分钟,直到所有的容器组处于 Running 状态 watch kubectl get pod -n kube-system -o wide