Coder Social home page Coder Social logo

jaysonraymond / kubernetes-vagrant-coreos-cluster Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pires/kubernetes-vagrant-coreos-cluster

0.0 2.0 0.0 229 KB

Kubernetes cluster (for testing purposes) made easy with Vagrant and CoreOS.

License: Apache License 2.0

kubernetes-vagrant-coreos-cluster's Introduction

kubernetes-vagrant-coreos-cluster

Kubernetes (0.9.1) cluster made easy with Vagrant (1.7.2+) and CoreOS alpha.

Pre-requisites

  • Virtualbox
  • Vagrant
  • kubectl
  • fleetctl (optional for debugging Fleet)
  • etcdctl (optional for debugging Etcd)

fleetctl, etcdctl

On Mac OS

brew install wget fleetctl etcdctl
export ETCDCTL_PEERS=http://172.17.8.101:4001
export FLEETCTL_ENDPOINT=http://172.17.8.101:4001

kubectl

On Mac OS

cd /opt
sudo wget -c https://github.com/GoogleCloudPlatform/kubernetes/releases/download/v0.9.1/kubernetes.tar.gz
sudo tar zxf kubernetes.tar.gz
export PATH=/opt/kubernetes/platforms/darwin/amd64:$PATH
export KUBERNETES_MASTER=http://172.17.8.101:8080

Master

Current Vagrantfile will bootstrap one VM with everything needed to become a Kubernetes master.

vagrant up master

Verify fleet sees it

fleetctl list-machines

You should see something like

MACHINE		IP		METADATA
dd0ee115...	172.17.8.101	role=master

Minions

Current Vagrantfile will bootstrap two VMs with everything needed to have two Kubernetes minions. You can change this by editing Vagrantfile.

vagrant up node-01
vagrant up node-02

Verify fleet again, just for the sake of it

fleetctl list-machines

You should see something like

MACHINE		IP		METADATA
dd0ee115...	172.17.8.101	role=master
74a8dc8c...	172.17.8.102	role=kubernetes
c93da9ff...	172.17.8.103    role=kubernetes

Usage

You're now ready to use your Kubernetes cluster.

If you just want to test something simple, start with Kubernetes examples.

kubernetes-vagrant-coreos-cluster's People

Contributors

pires avatar

Watchers

 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.