MIT License
Minimal vagrant setup to test k3s.
Use ./up.sh
to spawn a k3s
cluster composed of 1 server and 3 agents.
Use ./clean.sh
to clean things up.
You can adapt the Vagrantfile
if you need to change the composition of the
cluster.
The biggest challenge with this setup was virtualbox related.
Using virtualbox, I add two ifaces to each vm:
By default k3s and flannel pick the NAT one. Some configuration is needed to:
These configuration options are set in the systemd services (NODE_IP
and
--flannel-iface
).