This builds on the work of:
- https://www.murillodigital.com/tech_talk/k3s_in_coreos/
- https://stevex0r.medium.com/setting-up-a-lightweight-kubernetes-cluster-with-k3s-and-fedora-coreos-12d504160366
And tries to modernize things a bit and automate further.
Creating the ISOs for automatic installation should be as simple as:
./01-build-iso.sh -b -t <TOKEN> -u <SERVER URL> -k <SSH KEY FILE>
This should generate both an agent.iso
and server.iso
file. The server URL should have the format of https://ServerIP:6443
.
The ssh key file (-k
) should list the public keys that must be added to the authorized_keys
file for the core
user. Next to ssh public keys lines of the format github:USERNAME
can be added. These lines will be replaced with the contents of https://github.com/USERNAME.keys
It is also possible to use the script to only create an agent or server ISO. Or an ISO file for a single node cluster.
The built-in help should be pretty self-explanatory: ./01-build-iso.sh -h