修复docker安装问题

This commit is contained in:
zhanglikun 2024-01-31 08:20:42 +08:00
parent ebfb337d6f
commit 28284be26a
2 changed files with 5 additions and 3 deletions

View File

@ -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"

View File

@ -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