Offline installer for kubernetes.
This project is modified from k8s-deploy, it provides offline installation solution for kubernetes. It is useful for deploying K8S to OFFLINE production environment.
- 1.5.1
- 1.6.2
- 1.7.2
- Docker (1.12.6)
- All the kubernetes components
- Kubernetes dashboard, with default node port:
31234
- Offline installer is ONLY FOR CentOS.
- All the installers are installed & verified by: CentOS Linux release 7.3.1611 (Core)
- Right now, offline installer only installs K8S master with SINGLE instance, K8S master HA is NOT supported yet.
Kubernetes Version: 1.5.1
- Downlaod installer from 百度网盘: URL: https://pan.baidu.com/s/1mikM3Ao Code: bvj5
- Copy it to the production server
- Go to the installer directory, host it with a simple HTTP server by Python:
[root@master k8s-deploy-1.5]# python -m SimpleHTTPServer
Serving HTTP on 0.0.0.0 port 8000 ...
-
Get the IP address of dispatch server, for example: 192.168.0.10
-
Install K8S master via curl:
curl -L http://192.168.0.10:8000/install.sh | bash -s master
-
When you see that "K8S master install finished!" remember the token output like this: " kubeadm join --token f8c407.9aa4bb840dfe2da0 192.168.0.10"
To initialize a node & join the K8S cluster is simple:
curl -L http://192.168.0.10:8000/install.sh | bash -s join --token=f8c407.9aa4bb840dfe2da0 192.168.0.10
Repeat this step if you want to setup multiple K8S nodes.
http://(master or node IP):31234
Kubernetes Version: 1.6.2
Downlaod installer from 百度网盘: URL: https://pan.baidu.com/s/1jIHu7H0 Code: 61b4
Steps are the same with K8S 1.5, but you need to notice the differences:
- Remember to reload the shell after master installation is completed:
source ~/.bashrc
- To install K8S node, don't forget the port:
6443
curl -L http://192.168.0.10:8000/install.sh | bash -s join --token=f8c407.9aa4bb840dfe2da0 192.168.0.10:6443
Kubernetes Version: 1.7.2
Downlaod installer from 百度网盘: URL: https://pan.baidu.com/s/1pLLUiSj Code: ye2k
Steps are the same with K8S 1.6.