Giter Site home page Giter Site logo

kube-in-docker's Introduction

kube-in-docker

Run Kubernetes in Docker and anywhere

We now support ubuntu, debian, mint, centos, fedora distribution

NOTE:

Our scripts has been merged into Kubernetes repo as we expected, see this offical guide for more details if you want to try. We'll maintain this work with Google guys there.

However, the scirpts and docs in this repo will keep updating in order to meet our own projects' requirements, so don't expect it work in every enviroment.

TODO:

move bootstrap-docker into auto start

Requirement

At least one node have access to Internet, no PublicIP required.

Usage

On the node which have Internet access, set these ENV:

# variables which requires user filled in 
# registry related
PRIVATE_IP="10.168.14.145"
PRIVATE_PORT="5000"
# extra volume for registry
HOSTDIR="/mnt"
USER="cxy"

run master.sh. This node will act as both master & minion.

On every other worker node, set these ENV:

MASTER_IP="10.168.14.145"
# just use minion's ip instead
HOSTNAME="10.168.10.5"
USER="cxy"

run minion.sh. They will act as minion.

Done!

Notice

If there're some of your minions have no access to Internet, you cannot start container on it because Docker cannot download image. Tha't why we installed a private registry on master. Please use it.

For Chinese users

Google's pause image is blocked by GFW. We recommend you to pull from docker.io mannually and re-tag it like what fix-pause did. You need to do this on every node!

If your node have no access to Internet, you need to pull it from docker.io, export it, scp it to nodes. Then import & re-tag it on every node.

kube-in-docker's People

Contributors

fate-grand-order avatar resouer avatar wizard-cxy avatar

Watchers

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