This project allows you to deploy a multi-node kubernetes cluster with the help of Vagrantfile and Ansible
vagrant up
You can configure your k8s cluster by editing the CONFIGURATION VARIABLES
available in the Vagrantfile
Here's how to configure the kubectl tool on your local machine to communicate with the kubernetes API :
scp -r [email protected]:/home/vagrant/.kube $HOME/
password = vagrant
Test your config like the example bellow :
kubectl get nodes
Result :
NAME STATUS ROLES AGE VERSION
master Ready master 35m v1.15.1
worker-1 Ready <none> 30m v1.15.1
Either you are at the same level as your Vagrantfile, in this case you run the following command :
vagrant ssh master
Either you are in another folder :
ssh -r [email protected]
password = vagrant