Skip to content

guoyu07/k8s-offline

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kubernetes Offline

Offline installer for kubernetes.

Introduction

This project is modified from k8s-deploy, it provides offline installation solution for kubernetes. It is useful for deploying K8S to OFFLINE production environment.

Supported kubernetes version:

  • 1.5.1
  • 1.6.2
  • 1.7.2

The offline installer will install:

  • Docker (1.12.6)
  • All the kubernetes components
  • Kubernetes dashboard, with default node port:31234

Requirement & Limitation

  • 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.

Navigation

Offline installer for K8S 1.5

Offline installer for K8S 1.6

Offline installer for K8S 1.7

Offline installer for K8S 1.5

Kubernetes Version: 1.5.1

Prepare the dispatch server

  1. Downlaod installer from 百度网盘: URL: https://pan.baidu.com/s/1mikM3Ao Code: bvj5
  2. Copy it to the production server
  3. 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 ...

Install K8S master

  1. Get the IP address of dispatch server, for example: 192.168.0.10

  2. Install K8S master via curl:

    curl -L http://192.168.0.10:8000/install.sh | bash -s master
  3. When you see that "K8S master install finished!" remember the token output like this: " kubeadm join --token f8c407.9aa4bb840dfe2da0 192.168.0.10"

Install K8S node

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.

Access the kubernetes dashboard

http://(master or node IP):31234

Offline installer for K8S 1.6

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

Offline installer for K8S 1.7

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.

About

Offline installation package for kubernetes.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%