From 2cb742dbbe47c4a89528d60e82ec4d5a0b385f7e Mon Sep 17 00:00:00 2001 From: zhanglikun Date: Wed, 31 Jan 2024 09:05:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dflannel=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E5=AE=89=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cluster.sh | 5 +++++ single.sh | 1 + 2 files changed, 6 insertions(+) diff --git a/cluster.sh b/cluster.sh index 8b60698..ed744c6 100755 --- a/cluster.sh +++ b/cluster.sh @@ -44,6 +44,11 @@ ssh root@${MASTER1} "cd /tmp/kubeadm/ && bash install.sh" ssh root@${MASTER2} "cd /tmp/kubeadm/ && bash install.sh" ssh root@${MASTER3} "cd /tmp/kubeadm/ && bash install.sh" +# 导入flannel镜像 +ssh root@${MASTER1} "cd /tmp/flannel/ && bash install.sh" +ssh root@${MASTER2} "cd /tmp/flannel/ && bash install.sh" +ssh root@${MASTER3} "cd /tmp/flannel/ && bash install.sh" + # 创建集群 cd kubeadm ./create_cluster.sh ${API_SERVER} | tee /tmp/install.log diff --git a/single.sh b/single.sh index b252106..0632e23 100755 --- a/single.sh +++ b/single.sh @@ -9,6 +9,7 @@ fi ./init/init.sh ./docker/install.sh +./flannel/install.sh ./kubeadm/install.sh ./kubeadm/create_cluster.sh ${API_SERVER} ./ingress-nginx/install.sh