This is a kubeadm Kubernetes Cluster Lab wrapped in a Vagrant environment.
A friendly fork of rgl/rke2-vagrant. Thanks for all the prework!
Check libvirt documentation for installation.
Vagrant Debian:
sudo apt install vagrant
Vagrant Arch:
sudo pacman -S vagrant libvirt pkg-config dnsmasq
Arch for NFS:
sudo pacman -S nfs-utils
Install the required vagrant plugins:
sudo vagrant plugin install vagrant-hosts vagrant-libvirt
Launch the environment:
time vagrant up --no-destroy-on-error --no-tty [--provider=libvirt]
NB The controlplane VMs (e.g. cp1
) are tainted to prevent them from executing non control-plane workloads. That kind of workload is executed in the worker nodes (e.g. w1
).
Access the Kubernetes API at:
https://vip.kubeadm.lab:6443
The K9s console UI dashboard is also installed in the controlplane node. You can access it by running:
vagrant ssh cp1
sudo su -l
k9s