Code Monkey home page Code Monkey 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

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

k8s-offline's Issues

安装错误

Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
正在安装 : libcgroup-0.41-11.el7.x86_64 1/11
正在安装 : checkpolicy-2.5-4.el7.x86_64 2/11
正在安装 : setools-libs-3.3.8-1.1.el7.x86_64 3/11
正在安装 : libtool-ltdl-2.4.2-22.el7_3.x86_64 4/11
正在安装 : libsemanage-python-2.5-5.1.el7_3.x86_64 5/11
正在安装 : audit-libs-python-2.6.5-3.el7_3.1.x86_64 6/11
正在安装 : python-IPy-0.75-6.el7.noarch 7/11
正在安装 : policycoreutils-python-2.5-11.el7_3.x86_64 8/11
正在安装 : docker-engine-selinux-1.12.6-1.el7.centos.noarch 9/11
setsebool: SELinux is disabled.
Re-declaration of boolean virt_sandbox_use_fusefs
Failed to create node
Bad boolean declaration at /etc/selinux/targeted/tmp/modules/100/virt/cil:159
/usr/sbin/semodule: Failed!
libsemanage.semanage_direct_install_info: Overriding docker module at lower priority 100 with module at priority 400.
正在安装 : libseccomp-2.3.1-2.el7.x86_64 10/11
正在安装 : docker-engine-1.12.6-1.el7.centos.x86_64

1.6版 dashboard一直pending

这个装好后,k8s的框架就好了吗?可以给开发人员使用了吗?
另外dashboard pending怎么解决

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.