- Use 64 bit OS. At the moment, Rasberry Pi OS is only available in 32bit. 64 bit version is still beta. Find the latest 64 bit builds here.
- Your choice is to use a beta OS or switch to another OS like Ubuntu.
$ sudo vi /boot/firmware/cmdline.txt
Add the following and reboot
cgroup_enable=memory cgroup_memory=1
$ sudo apt update
$ sudo apt install snapd
$ sudo snap download core
Ref: https://snapcraft.io/docs/installing-snap-on-raspbian
$ sudo snap install microk8s --classic --channel=1.20/stable
$ sudo iptables -P FORWARD ACCEPT
Ubuntu server boot from usb is non-trivial, unlike raspberry os : https://www.raspberrypi.org/forums/viewtopic.php?t=278791
If you are using sdcard, then the above would work just fine