Appearance
Managing your K3s cluster
INFO
Configuration file for interacting with the cluster is located in ~/.kube/config
Creating your own K3s cluster
- Download k3sup if not already
- Run the following command to create a control-plane node and its cluster;
sh
k3sup install --cluster --ip 192.168.68.100 --user toast --ssh-key .ssh/ovhkeyINFO
SSH key is optional but if your node's SSH is key-based authentication and doesn't use password, then pass in the privatekey file to it.
- Once the cluster is fully operational, you can add more nodes to the existing cluster via the following command;
sh
k3sup join --ip 192.168.68.101 --server-ip 192.168.68.100 --user toast --ssh-key .ssh/ovhkeyINFO
Repeat for other remaining nodes you want them to join by replacing 192.168.68.101 with IP address of the next node.
TIP
To update an existing cluster to latest version of k3s, e.g v1.33.3+k3s1, append --k3s-version v1.33.3+k3s1 to the k3sup join command above and it will start updating the node to latest version.
I personally recommend updating the worker nodes first before updating the master node(s).
