Use Vagrant to create a set of virtual machines connected through a virtual network and deploy a Kubernetes cluster on them.
Vagrant will configure the first VM as cluster master, and the rest as workers.
Although a local cluster defeats the purpose of Kubernetes itself (you don't actually get the fail-safe redundancy of a real cluster) this still has some applications:
- Free training dummy.
- Help cluster admins to test new versions and features of Kubernetes.
- Help in the development of the deployment scripts, which can be later used for example in Terraform.
- Install Vagrant and Virtualbox.
- Clone or download this repository.
- On the directory of the Vagrantfile run:
vagrant up
- Load your configuration:
export KUBECONFIG="$KUBECONFIG:$PWD/admin.conf"
- Test that everything worked:
kubectl get nodes