diff --git a/cluster.sh b/cluster.sh index 7f44a84..8b60698 100755 --- a/cluster.sh +++ b/cluster.sh @@ -34,6 +34,11 @@ ssh root@${MASTER1} "cd /tmp/keepalived/ && bash install.sh && cp -r keepalived1 ssh root@${MASTER2} "cd /tmp/keepalived/ && bash install.sh && cp -r keepalived2.conf /etc/keepalived/keepalived.conf && systemctl restart keepalived" ssh root@${MASTER3} "cd /tmp/keepalived/ && bash install.sh && cp -r keepalived3.conf /etc/keepalived/keepalived.conf && systemctl restart keepalived" +# 安装Docker +ssh root@${MASTER1} "cd /tmp/docker/ && bash ./install.sh" +ssh root@${MASTER2} "cd /tmp/docker/ && bash ./install.sh" +ssh root@${MASTER3} "cd /tmp/docker/ && bash ./install.sh" + # 安装 kubeadm 组件 ssh root@${MASTER1} "cd /tmp/kubeadm/ && bash install.sh" ssh root@${MASTER2} "cd /tmp/kubeadm/ && bash install.sh" diff --git a/kubeadm/install.sh b/kubeadm/install.sh index 61b4c31..560dab2 100644 --- a/kubeadm/install.sh +++ b/kubeadm/install.sh @@ -3,8 +3,5 @@ yum install -y ./*.rpm ls *.tar | xargs -I {} docker load -i {} -cd ../docker && bash ./install.sh && cd - -cd ../flannel && bash install.sh - systemctl enable --now kubelet