增加国内下载源
This commit is contained in:
parent
02b5d3324d
commit
3b6e15310f
10
README.md
10
README.md
@ -1,5 +1,13 @@
|
|||||||
# offline-kubernetes-install
|
# offline-kubernetes-install
|
||||||
完全离线的情况下, 安装k8s集群, 基于 CentOS7, k8s 1.21.10 版本, 容器运行时 是docker, 安装工具是kubeadm, 全部采用容器化或者rpm包的形式部署, 坚决不使用二进制。
|
|
||||||
|
## 项目特点
|
||||||
|
基于 CentOS7, k8s 1.21.10 版本
|
||||||
|
|
||||||
|
- 完全离线的情况下, 安装k8s集群
|
||||||
|
- 容器运行时为 docker
|
||||||
|
- 安装工具为 kubeadm
|
||||||
|
- 全部采用容器化或者rpm包的形式部署
|
||||||
|
- 支持使用国内源进行下载
|
||||||
|
|
||||||
## 系统要求
|
## 系统要求
|
||||||
|
|
||||||
|
16
download.sh
16
download.sh
@ -1,7 +1,22 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
|
source .env
|
||||||
|
|
||||||
cd temp/
|
cd temp/
|
||||||
|
|
||||||
|
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/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/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/ingress-nginx/ingress-nginx.tar.gz
|
||||||
@ -12,6 +27,7 @@ curl -OL -C - https://github.com/iuxt/offline-kubernetes-install/releases/downlo
|
|||||||
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/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/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
|
curl -OL -C - https://github.com/iuxt/offline-kubernetes-install/releases/download/rsync/rsync-3.1.2-12.el7_9.x86_64.rpm
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
md5sum -c md5.sum
|
md5sum -c md5.sum
|
||||||
|
Loading…
Reference in New Issue
Block a user