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