Microk8s Config
Learn about the kubernetes setup!
Config
Choosing the right distro
- When it comes to Microk8s not every distro is usable.
- After testing multible distros on the rpi5, Ubuntu server was the best.
- Ubuntu offers better compatibility with Microk8s, due to ownership of the project.
Installing snapd on Debian based distros
sudo apt update
sudo apt install snapd
systemctl enable --now snapd apparmor
Testing snapd on Debian based distros
snap install hello-world
hello-world
snap remove hello-world
Installing Microk8s
sudo snap install microk8s --classic --channel=1.31
sudo usermod -a -G microk8s $USER
mkdir -p ~/.kube
chmod 0700 ~/.kube
Raspberry Pi boot config
sudo vi /boot/firmware/cmdline.txt
cgroup_enable=memory cgroup_memory=1
sudo apt install linux-modules-extra-raspi
sudo microk8s stop sudo microk8s start