Git Product home page Git Product logo

kubeclust's Introduction

Kubeclust

build

Kubeclust sets up a kubernetes 1.20.2 cluster on three VirtualBox virtual machines (one master and two workers) running Ubuntu 20.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    control-plane,master   7m2s    v1.20.2
worker1      Ready    <none>                 6m33s   v1.20.2
worker2      Ready    <none>                 6m33s   v1.20.2

vagrant@kubemaster:~$ kubectl get pods --all-namespaces
NAMESPACE     NAME                                       READY   STATUS    RESTARTS   AGE
kube-system   calico-kube-controllers-744cfdf676-wnsth   1/1     Running   0          8m5s
kube-system   calico-node-6c7cg                          1/1     Running   0          8m5s
kube-system   calico-node-fpwfs                          1/1     Running   0          7m55s
kube-system   calico-node-j87dn                          1/1     Running   0          7m55s
kube-system   coredns-74ff55c5b-6jgb6                    1/1     Running   0          8m5s
kube-system   coredns-74ff55c5b-9lw2b                    1/1     Running   0          8m5s
kube-system   etcd-kubemaster                            1/1     Running   0          8m19s
kube-system   kube-apiserver-kubemaster                  1/1     Running   0          8m19s
kube-system   kube-controller-manager-kubemaster         1/1     Running   0          8m19s
kube-system   kube-proxy-dwfzq                           1/1     Running   0          7m55s
kube-system   kube-proxy-r7cqp                           1/1     Running   0          8m5s
kube-system   kube-proxy-wpwg5                           1/1     Running   0          7m55s
kube-system   kube-scheduler-kubemaster                  1/1     Running   0          8m19s

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 dependabot[bot] avatar frzb avatar

Watchers

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