/kubernetes-cluster

A local kubernetes cluster for testing k8s infra components

Primary LanguageMakefile

Libvirt (KVM2) Kubernetes cluster

  • Set up a very basic local Kubernetes cluster using Kubeadm
  • For testing k8s infra components
  • Hosted on libvirt: /(KVM2) on Centos
    (Other distros work also)

TODO:

This installs

  • 3 node k8s cluster (1x Master, 2x workers)
  • Standard compliment of k8 components, API, Controller, Scheduler, Proxy, Etcd, DNS, etc...
  • Ingress controller
  • Calico network policies

Pre-requisites

   $ vagrant plugin install vagrant-libvirt

How to Run

Execute the following vagrant command to start a new Kubernetes cluster, this will start one master and two nodes:

sudo vagrant up --no-parallel

Clean-up

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

sudo vagrant destroy -f