Code Monkey home page Code Monkey logo

kubeclust's Introduction

Kubeclust

Kubeclust sets up a kubernetes 1.13.2 cluster on three VirtualBox virtual machines (one master and two workers) running Ubuntu 18.04 LTS using kubeadm.

Prerequisites

Installation

In the virtual environment, run

$ pip install -r requirements.txt

Create Virtual Machines

Run vagrant up to bring up three virtual machines.

The hostnames and IP addresses of the machines are as follows:

kubemaster — 192.168.99.20

worker1 – 192.168.99.21

worker2 – 192.168.99.22

Create kubernetes cluster

In the virtual environment created earlier, run

$ make cluster

As soon as it is done, you can ssh into kubemaster to see the nodes and the pods in the cluster. They may take a while to get ready.

vagrant@kubemaster:~$ kubectl get nodes
NAME         STATUS     ROLES    AGE   VERSION
kubemaster   Ready      master   54s   v1.13.2
worker1      Ready      <none>   27s   v1.13.2
worker2      Ready      <none>   27s   v1.13.2

vagrant@kubemaster:~$ kubectl get pods --all-namespaces
NAMESPACE     NAME                                 READY   STATUS    RESTARTS   AGE
kube-system   calico-node-6fkt5                    2/2     Running   0          67s
kube-system   calico-node-n972r                    2/2     Running   0          61s
kube-system   calico-node-v965s                    2/2     Running   0          61s
kube-system   coredns-86c58d9df4-9lb8f             1/1     Running   0          67s
kube-system   coredns-86c58d9df4-ht6f8             1/1     Running   0          67s
kube-system   etcd-kubemaster                      1/1     Running   0          14s
kube-system   kube-apiserver-kubemaster            1/1     Running   0          9s
kube-system   kube-controller-manager-kubemaster   1/1     Running   0          31s
kube-system   kube-proxy-vv78z                     1/1     Running   0          61s
kube-system   kube-proxy-x2mn9                     1/1     Running   0          61s
kube-system   kube-proxy-ztq8q                     1/1     Running   0          67s
kube-system   kube-scheduler-kubemaster            1/1     Running   0          21s

Tear down cluster

$ make clean

This will drain the nodes, make sure that they are empty before shutting them down and reset all kubeadm installed state.

kubeclust's People

Contributors

kosyfrances avatar pankaj310892 avatar

Watchers

James Cloos 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.