-
Ubuntu环境下Kubernetes 1.10.5离线安装包
资源介绍
本离线安装包是kubernetes 1.10.5 版本的安装包及其依赖. 通过apt自动下载获取:
$ sudo apt install -d kubeadm=1.10.5-00 kubelet=1.10.5-00 kubectl=1.10.5-00
Kubernetes 1.11.0 离线安装包下载: https://download.****.net/download/jiaoxiaogu/10516033
Kubernetes 1.10.5 只支持docker 17.x.x版本
docker 17.x.x 安装方法:
$ sudo apt install -y docker-ce="$(apt-cache madison docker-ce | /bin/grep 17.03 | head -1 | awk '{print $3}')"
离线包使用方法:
$ tar xf kubernetes-ubuntu-1.10.5.tar.gz
$ cp -r kubernetes-ubuntu-1.10.5/* /var/cache/apt/archives/
$ sudo apt install kubeadm=1.10.5-00 kubelet=1.10.5-00 kubectl=1.10.5-00
安装kubernetes master:
$ sudo kubeadm init --ignore-preflight-errors=all --kubernetes-version=1.10.5
可选参数:
--pod-network-cidr=10.244.0.0/16 // flannel network
--apiserver-advertise-address=x.x.x.x
安装包内容:
$ tree -L 1 kubernetes-ubuntu-1.10.5
kubernetes-ubuntu-1.10.5
├── ebtables_2.0.10.4-3.5ubuntu2.18.04.1_amd64.deb
├── kubeadm_1.10.5-00_amd64.deb
├── kubectl_1.10.5-00_amd64.deb
├── kubelet_1.10.5-00_amd64.deb
├── kubernetes-cni_0.6.0-00_amd64.deb
└── socat_1.7.3.2-2ubuntu2_amd64.deb
0 directories, 6 files
官网下载源:
https://packages.cloud.google.com/apt
官网下载地址:
https://packages.cloud.google.com/apt/pool/kubeadm_1.10.5-00_amd64_599778e9ebcdf6340b3068dd19bbf3674a9d7fe37d47455879c259b2e780b62f.deb
https://packages.cloud.google.com/apt/pool/kubectl_1.10.5-00_amd64_76a98e003a46be66d802b5c79ba11fdc6f10463e524e67db02db1684fd9dad8e.deb
https://packages.cloud.google.com/apt/pool/kubelet_1.10.5-00_amd64_10aa030ab7d406ca639c57d16ab154b32e75f55925fb24065e33359c918722af.deb
kubernetes包文件详细信息:
https://packages.cloud.google.com/apt/dists/kubernetes-xenial/main/binary-amd64/Packages
官网提供Ubuntu源安装: https://kubernetes.io/docs/tasks/tools/install-kubectl/#install-kubectl
$ sudo apt-get update && sudo apt-get install -y apt-transport-https
$ curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
$ sudo touch /etc/apt/sources.list.d/kubernetes.list
$ echo "deb http://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee -a /etc/apt/sources.list.d/kubernetes.list
$ sudo apt-get update