These scripts allow the deployment of a Kubernetes cluster running in Vagrant using K3S. By default, the script deploys a cluster having 2 master nodes and 2 worker nodes. If you need more nodes, just reconfigure Vagrantfile.
In order to allow Kubernetes nodes to communicate with each other in SSH, you can create it yourself before starting the deployment via Vagrant.
> ssh-keygen -f ./.ssh/id_rsa
You can launch the deployment with a simple command.
> vagrant up
If you no longer need the cluster, you can destroy it with a simple.
> vagrant destroy -f
Run the script that will allow you to download kubectl and configure it to connect to our cluster without affecting any of the configuration already on the host.
> source ./scripts/configure_kubectl.sh