From af05569ffaa96921b5f83fbd7cfe08187d6aa13e Mon Sep 17 00:00:00 2001 From: zhanglikun Date: Tue, 30 Jan 2024 16:42:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9D=83=E9=99=90=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cluster.sh | 10 +++------- init/init.sh | 0 2 files changed, 3 insertions(+), 7 deletions(-) mode change 100644 => 100755 init/init.sh diff --git a/cluster.sh b/cluster.sh index 4ecd18f..934f328 100755 --- a/cluster.sh +++ b/cluster.sh @@ -12,9 +12,9 @@ fi scp -r init/ root@${MASTER1}:/tmp/ scp -r init/ root@${MASTER2}:/tmp/ scp -r init/ root@${MASTER3}:/tmp/ -ssh root@${MASTER1} "cd /tmp/init/ && ./init.sh" -ssh root@${MASTER2} "cd /tmp/init/ && ./init.sh" -ssh root@${MASTER3} "cd /tmp/init/ && ./init.sh" +ssh root@${MASTER1} "cd /tmp/init/ && bash ./init.sh" +ssh root@${MASTER2} "cd /tmp/init/ && bash ./init.sh" +ssh root@${MASTER3} "cd /tmp/init/ && bash ./init.sh" # 生成keepalived配置文件 git checkout keepalived/*.conf @@ -36,10 +36,6 @@ ssh root@${MASTER2} "cd /tmp/keepalived/ && bash install.sh && cp -r keepalived2 ssh root@${MASTER3} "cd /tmp/keepalived/ && bash install.sh && cp -r keepalived3.conf /etc/keepalived/keepalived.conf && systemctl restart keepalived" # 创建集群 -ssh root@${MASTER1} "cd /tmp/init/ && ./init.sh" -ssh root@${MASTER2} "cd /tmp/init/ && ./init.sh" -ssh root@${MASTER3} "cd /tmp/init/ && ./init.sh" - cd kubeadm ./create_cluster.sh ${API_SERVER} | tee /tmp/install.log diff --git a/init/init.sh b/init/init.sh old mode 100644 new mode 100755