Giter VIP home page Giter VIP logo

k8s-offline's Introduction

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.

k8s-offline's People

Contributors

timothyye avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.