Install virtualbox:
https://www.virtualbox.org/wiki/Downloads
Install Hasicorp vagrant:
https://www.vagrantup.com/
in order to provision the cluster- execute the following commands.
cd <VAGRANT_FOLDER_PATH>
vagrant up
cd <VAGRANT_FOLDER_PATH>
cd configs
export KUBECONFIG=$(PWD)/config
or you can copy the config file to .kube directory.
cp config ~/.kube/
http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/#/overview?namespace=kubernetes-dashboard
Vagrant up will create the admin user token and saves in the configs directory.
cd <VAGRANT_FOLDER_PATH>
cd configs
cat token
cd <VAGRANT_FOLDER_PATH>
vagrant status
cd <VAGRANT_FOLDER_PATH>
vagrant ssh [ master | node01 | node02 ]
vagrant halt
vagrant destroy -f