k3s manual install

Prerequisites

Additionally to having a bunch of VMs or bare-metal servers, it is also required to have two password-less SSH login and password-less sudo already being setup in order to use k3sup.
Make sure you have certifcate base logins enabled on the target machines AND passwordless SUDO
Of course, the tool k3sup is also needed. It can be installed by executing the following(on your local machine):
1
curl -sLSf https://get.k3sup.dev | sh
2
sudo install -m k3sup /usr/local/bin/
Copied!

Cluster Installation

With everything in place, the k3s server can be installed with
1
k3sup install --ip --user --local-path ~/.kube/config --context
Copied!
Or, in case you want to provide the hostname instead of an IP
1
k3sup install --host --user --local-path ~/.kube/config --context
Copied!
For some reason the server address in .kube/config was server: https://127.0.0.1:6443, I have changed this to my host by hand.
The agents are joined by executing this statement:
1
k3sup join --ip --server-ip --user
Copied!
A good test on the local machine is to list all the nodes with
1
kubectl get nodes
Copied!
Enjoy!