k8s-vagrant-vbox

Deploy local Kubernetes cluster using Vagrant, VirtualBox and Ansible as provisioner

Requirements:

Installation:

Clone the repository, navigate to the local repository folder and run:

vagrant up

Wait for the provisioning to complete, detailed information for every step will be displayed during the provisioning process

Validate your new Kubernetes cluster:

Navigate to your local project folder and login to the Kubernetes master vm:

vagrant ssh k8s-master

From your Kubernetes master node list the nodes in your new cluster using the ‘kubectl’ command:

vagrant@k8s-master:~$ kubectl get nodes
NAME           STATUS   ROLES    AGE   VERSION
k8s-master     Ready    master   16m   v1.19.1
k8s-worker-1   Ready    <none>   84s   v1.19.1