Table of Contents

Prearrange nodes

After a fight with k3 installation, I found it could be easier if:

Disable swap in each node

When installing Kubernetes on Linux, it’s recommended to disable swap because of how Kubernetes manages resources.

Disable swap in each node

# Disable swap
sudo swapoff -a
# Edit the swap file
sudo nano /etc/dphys-swapfile
# set in the file CONF_SWAPSIZE=0

Enable cgroup in Raspberry Pi nodes

If a `FATA[0000] failed to find memory cgroup (v2)` error surfaces during the installation of k3s, it is likely because the Pi OS lacks the required cgroup configuration. Below are the steps needed to resolve this issue:

# Enable cgroup on Raspberry Pi nodes.
# Modify file /boot/cmdline.txt to include the line
#(be careful it has to be added at the end of the line)
cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory