From 28284be26a3f1934ba1e4b15b867b5be1dbf8a51 Mon Sep 17 00:00:00 2001 From: zhanglikun Date: Wed, 31 Jan 2024 08:20:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Ddocker=E5=AE=89=E8=A3=85?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cluster.sh | 5 +++++ kubeadm/install.sh | 3 --- 2 files changed, 5 insertions(+), 3 deletions(-) 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