Vagrantfile and Scripts to Automate Kubernetes Setup using Kubeadm [Practice Environemnt for CKA/CKAD and CKS Exams]
Refer this link for documentation: https://devopscube.com/kubernetes-cluster-vagrant/
If you are preparing for CKA, CKAD or CKS exam, save 21% using code FEST21 at https://kube.promo/latest
- Working Vagrant setup
- 8 Gig + RAM workstation as the Vms use 3 vCPUS and 4+ GB RAM
To provision the cluster, execute the following commands.
git clone https://github.com/scriptcamp/vagrant-kubeadm-kubernetes.git
cd vagrant-kubeadm-kubernetes
vagrant up
cd vagrant-kubeadm-kubernetes
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-kubeadm-kubernetes
cd configs
cat token
vagrant halt
vagrant up
vagrant destroy -f
If you want Centos based setup, please refer https://github.com/marthanda93/VAAS