This repo contains a Vagrantfile and a set of shell scripts to help you create a local Kubernetes cluster using Vagrant and VirtualBox. This is very useful for people willing to take CKA/CKAD/CKS exams.
Most of the work was forked from techiescamp/vagrant-kubeadm-kubernetes. The main difference is that this project uses containerd instead of cri-o, and Kubernetes dashboard is not available.
Some names were also changed to make it inclusive, example: Master to Control Plane.
- Clone this repo
- Change the
config.yaml
file to your needs- This is important to change how much memory and CPU each VM will have and to set some components versions
- Run
vagrant up
to create the VMs - Copy the
kubeconfig
file to your local machine
Run vagrant halt
to stop the VMs or vagrant suspend
to suspend them.
Run vagrant destroy -f
to destroy the VMs.