Giter Site home page Giter Site logo

kubernetes-vagrant-setup's Introduction

kubernetes-vagrant-setup

A vagrant script for setting up a Kubernetes (1.0.1) cluster on CoreOS (alpha/752.1.0). This repository was forked from Pires's github repository and changed according to Apache Stratos requirements. All the credit goes to Pires for implementing this awesome Vagrant module.

Pre-requisites

How to Run

Set-up Kubernetes Cluster

Disable DHCP server in VirtualBox:

VBoxManage dhcpserver remove --netname HostInterfaceNetworking-vboxnet0

Execute the following bash script to start a new Kubernetes cluster, this will start one master node and one minion:

run.sh

If more than one minion is needed, run the below command with the required number of instances:

run.sh NUM_INSTANCES=2

If you need to specify minion's Memory and CPU, use following command:

run.sh NUM_INSTANCES=2 NODE_MEM=4096 NODE_CPUS=2

Wait until the nodes get connected to the cluster. Once the state of the nodes are changed to Ready, the Kubernetes cluster is ready for use. Execute following Kubernetes CLI commands and verify their status:

kubectl get nodes

NAME           LABELS                                STATUS
172.17.8.102   kubernetes.io/hostname=172.17.8.102   Ready

Access the Kubernetes UI using the following URL http://172.17.8.101:8080/ui. If it complains saying that endpoints "kube-ui" not found, execute the kube-ui-pod.sh script.

Clean-up

Execute the following command to remove the virtual machines created for the Kubernetes cluster.

vagrant destroy

If you've set NUM_INSTANCES or any other variable when deploying, please make sure you set it in vagrant destroy call above, like:

NUM_INSTANCES=2 vagrant destroy

Licensing

Apache License, Version 2.0.

kubernetes-vagrant-setup's People

Contributors

imesh avatar ravihansa3000 avatar lasinducharith avatar

Watchers

 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.