Install a k3s node

On the node

Become root.


sudo su
        

Then update the OS.


apt-get update -y
apt-get upgrade -y
reboot
        

Login back into the node and become root.


sudo su
        

Add the following to /boot/cmdline.txt.


cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory
        

Reboot the node.


reboot
        

On the machine you are using to manage the cluster

Copy the SSH keys into the node (replace NODE-IP with the IP address of the node).


ssh-copy-id pi@NODE-IP
        

Join the node to the k3s cluster (replace NODE-IP with the IP address of the node and SERVER_IP with the IP address of the master).


k3sup join --ip NODE-IP --server-ip SERVER-IP --user pi
        

And voila you have added a k3s node to your k3s cluster!

Posted February 4th, 2021

Up