2023-04-27 11:39:30 +08:00
|
|
|
#!/bin/bash
|
2023-06-15 10:57:11 +08:00
|
|
|
set -euo pipefail
|
2023-04-27 11:39:30 +08:00
|
|
|
|
2024-02-02 17:53:08 +08:00
|
|
|
source .env
|
|
|
|
|
2024-01-30 15:56:17 +08:00
|
|
|
cd temp/
|
2024-02-02 17:53:08 +08:00
|
|
|
|
|
|
|
if [ x${USE_CHINA_MIRROR} == "xyes" ]; then
|
|
|
|
curl -OL -C - https://git.babudiu.com/iuxt/offline-kubernetes-install/releases/download/docker-ce/docker-ce-20.10.tar.gz
|
|
|
|
curl -OL -C - https://git.babudiu.com/iuxt/offline-kubernetes-install/releases/download/flannel/flannel.tar.gz
|
|
|
|
curl -OL -C - https://git.babudiu.com/iuxt/offline-kubernetes-install/releases/download/ingress-nginx/ingress-nginx.tar.gz
|
|
|
|
curl -OL -C - https://git.babudiu.com/iuxt/offline-kubernetes-install/releases/download/kernel_5.4/kernel_5.4.tar.gz
|
|
|
|
curl -OL -C - https://git.babudiu.com/iuxt/offline-kubernetes-install/releases/download/kubeadm/kubeadm_images.tar.gz
|
|
|
|
curl -OL -C - https://git.babudiu.com/iuxt/offline-kubernetes-install/releases/download/kubeadm/kubeadm_rpms.tar.gz
|
|
|
|
curl -OL -C - https://git.babudiu.com/iuxt/offline-kubernetes-install/releases/download/keepalived/keepalived.tar.gz
|
|
|
|
curl -OL -C - https://git.babudiu.com/iuxt/offline-kubernetes-install/releases/download/rpms/bash-completion-2.1-8.el7.noarch.rpm
|
|
|
|
curl -OL -C - https://git.babudiu.com/iuxt/offline-kubernetes-install/releases/download/git/git-2.31.1.tar.gz
|
|
|
|
curl -OL -C - https://git.babudiu.com/iuxt/offline-kubernetes-install/releases/download/rpms/rsync-3.1.2-12.el7_9.x86_64.rpm
|
|
|
|
else
|
|
|
|
curl -OL -C - https://github.com/iuxt/offline-kubernetes-install/releases/download/docker-ce-20.10.23-3.el7.x86_64/docker-ce-20.10.tar.gz
|
|
|
|
curl -OL -C - https://github.com/iuxt/offline-kubernetes-install/releases/download/flannel/flannel.tar.gz
|
|
|
|
curl -OL -C - https://github.com/iuxt/offline-kubernetes-install/releases/download/ingress-nginx/ingress-nginx.tar.gz
|
|
|
|
curl -OL -C - https://github.com/iuxt/offline-kubernetes-install/releases/download/kernel_5.4/kernel_5.4.tar.gz
|
|
|
|
curl -OL -C - https://github.com/iuxt/offline-kubernetes-install/releases/download/kubeadm_images/kubeadm_images.tar.gz
|
|
|
|
curl -OL -C - https://github.com/iuxt/offline-kubernetes-install/releases/download/kubeadm_rpms/kubeadm_rpms.tar.gz
|
|
|
|
curl -OL -C - https://github.com/iuxt/offline-kubernetes-install/releases/download/keepalived/keepalived.tar.gz
|
|
|
|
curl -OL -C - https://github.com/iuxt/offline-kubernetes-install/releases/download/bash-completion/bash-completion-2.1-8.el7.noarch.rpm
|
|
|
|
curl -OL -C - https://github.com/iuxt/offline-kubernetes-install/releases/download/git/git-2.31.1.tar.gz
|
|
|
|
curl -OL -C - https://github.com/iuxt/offline-kubernetes-install/releases/download/rsync/rsync-3.1.2-12.el7_9.x86_64.rpm
|
|
|
|
fi
|
2024-01-30 15:56:17 +08:00
|
|
|
|
2023-04-27 11:39:30 +08:00
|
|
|
|
2023-06-15 10:57:11 +08:00
|
|
|
md5sum -c md5.sum
|
|
|
|
|
2023-04-27 11:39:30 +08:00
|
|
|
tar xf docker-ce-20.10.tar.gz -C ../docker/
|
|
|
|
tar xf flannel.tar.gz -C ../flannel/
|
|
|
|
tar xf ingress-nginx.tar.gz -C ../ingress-nginx/
|
2023-09-12 15:40:06 +08:00
|
|
|
tar xf kernel_5.4.tar.gz -C ../kernel_5.4/
|
2023-04-27 11:39:30 +08:00
|
|
|
tar xf kubeadm_images.tar.gz -C ../kubeadm/
|
|
|
|
tar xf kubeadm_rpms.tar.gz -C ../kubeadm/
|
2023-09-12 15:40:06 +08:00
|
|
|
tar xf keepalived.tar.gz -C ../keepalived/
|
2024-01-30 15:56:17 +08:00
|
|
|
cp bash-completion-2.1-8.el7.noarch.rpm ../kubeadm/
|
|
|
|
tar xf git-2.31.1.tar.gz -C ../init/
|
|
|
|
cp rsync-3.1.2-12.el7_9.x86_64.rpm ../init/
|