From 5754fdc8619c681f80db73ea8e43d76f624793b5 Mon Sep 17 00:00:00 2001 From: zhanglikun Date: Wed, 13 Sep 2023 22:36:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=80=E6=9C=89=E8=8A=82=E7=82=B9=E5=AF=BC?= =?UTF-8?q?=E5=85=A5flannel=E9=95=9C=E5=83=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- flannel/install.sh | 1 - scripts/create_cluster.sh | 2 +- scripts/init.sh | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/flannel/install.sh b/flannel/install.sh index 830dc02..4381e9b 100644 --- a/flannel/install.sh +++ b/flannel/install.sh @@ -3,4 +3,3 @@ set -euo pipefail ls *.tar | xargs -I {} docker load -i {} -kubectl apply -f ./kube-flannel.yml diff --git a/scripts/create_cluster.sh b/scripts/create_cluster.sh index 21d525a..42e95d3 100755 --- a/scripts/create_cluster.sh +++ b/scripts/create_cluster.sh @@ -23,4 +23,4 @@ EOF fi # 安装flannel -cd ../flannel && bash install.sh && cd - +cd ../flannel && bash install.sh && kubectl apply -f ./kube-flannel.yml && cd - \ No newline at end of file diff --git a/scripts/init.sh b/scripts/init.sh index 03a88a2..bf4b3cf 100755 --- a/scripts/init.sh +++ b/scripts/init.sh @@ -28,4 +28,5 @@ sed -i 's/.*swap.*/#&/' /etc/fstab cd ../docker && bash ./install.sh && cd - cd ../kubeadm && bash ./install.sh && cd - +cd ../flannel && bash install.sh