修复flannel组件安装

This commit is contained in:
zhanglikun 2024-01-31 09:05:12 +08:00
parent 3d8e3689d6
commit 2cb742dbbe
2 changed files with 6 additions and 0 deletions

View File

@ -44,6 +44,11 @@ ssh root@${MASTER1} "cd /tmp/kubeadm/ && bash install.sh"
ssh root@${MASTER2} "cd /tmp/kubeadm/ && bash install.sh" ssh root@${MASTER2} "cd /tmp/kubeadm/ && bash install.sh"
ssh root@${MASTER3} "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 cd kubeadm
./create_cluster.sh ${API_SERVER} | tee /tmp/install.log ./create_cluster.sh ${API_SERVER} | tee /tmp/install.log

View File

@ -9,6 +9,7 @@ fi
./init/init.sh ./init/init.sh
./docker/install.sh ./docker/install.sh
./flannel/install.sh
./kubeadm/install.sh ./kubeadm/install.sh
./kubeadm/create_cluster.sh ${API_SERVER} ./kubeadm/create_cluster.sh ${API_SERVER}
./ingress-nginx/install.sh ./ingress-nginx/install.sh