This project allows you to deploy a multi-node kubernetes cluster with the help of Vagrantfile and Ansible
vagrant upYou 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 = vagrantTest your config like the example bellow :
kubectl get nodesResult :
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 masterEither you are in another folder :
ssh -r [email protected]
password = vagrant