Coder Social home page Coder Social logo

10m-k8s's Introduction

10 Minute Kubernetes on CoreOS and DigitalOcean Demo

Steps:

Create a DigitalOcean account and upload your public SSH key.

Get the scripts

git clone https://github.com/coreos/coreos-kubernetes
git clone https://github.com/barakmich/10m-k8s
cp 10m-k8s/*.sh coreos-kubernetes
cd coreos-kubernetes

Launch a controller

Run the first CoreOS node on DO, with private networking turned on and the user data being the cloud config at 10m-k8s/single-etcd-cloud-config.yaml

Copy the IP address. This is your controller node. Let's pretend it's 10.1.1.1

# Create the SSL certs
./generate-ssls.sh 10.1.1.1
# Provision the controller
./provision-controller.sh 10.1.1.1 

Kubernetes is now running!

Configure kubectl

Get kubernetes from the official builds and copy kubectl to your $PATH. kubectl is under platforms/<your_platform>/<your_architecture>. Then run

./setup-kubectl.sh my_cool_cluster_name 10.1.1.1 

Add a worker (or five)

You can add a new worker node (spin one up on DO, no need for a cloud-config) and get it's IP. Suppose it's 10.2.2.2 . Run the following:

./provision-worker 10.2.2.2 10.1.1.1

And you're done!

10m-k8s's People

Contributors

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