ⓘ Note: Running Kubernetes can cause a lot of I/O requests and pressure on storage. It is not recommended to use a USB stick as primary storage when running MicroK8s.
Running MicroK8s on some ARM hardware may run into difficulties because cgroups
(required!) are not enabled by default. This can be remedied on the Rasberry Pi
by editing the boot parameters:
sudo vi /boot/firmware/cmdline.txt
Note: In some Raspberry Pi Linux distributions
the boot parameters are in `/boot/firmware/nobtcmd.txt`.
And adding the following:
cgroup_enable=memory cgroup_memory=1
To address disk performance issues often present on Raspberry Pi see the troubleshooting section.
Kernel modules
For Ubuntu 21.10+ it is necessary to install extra kernel modules:
I followed the Raspi installation instructions and first problem is that in latest Rasbian 64 Lite
There is no /boot/firmware/cmdline.txt file, nor is there firmware folder.
there is /boot/cmdline.txt file which look about right.
Added the above instruction says does not help not does what was instructed on some article :
cgroup_enable=cpuset cgroup_enable=memory cgroup_memory=1
microk8s version : MicroK8s v1.25.4 revision 4200
uname -a : Linux pi3-1 5.15.61-v8+ #1579 SMP PREEMPT Fri Aug 26 11:16:44 BST 2022 aarch64 GNU/Linux
root@pi3-1:~# microk8s inspect
Inspecting system
Inspecting Certificates
Inspecting services
Service snap.microk8s.daemon-cluster-agent is running
FAIL: Service snap.microk8s.daemon-containerd is not running
For more details look at: sudo journalctl -u snap.microk8s.daemon-containerd
Service snap.microk8s.daemon-kubelite is running
Service snap.microk8s.daemon-k8s-dqlite is running
Service snap.microk8s.daemon-apiserver-kicker is running
Copy service arguments to the final report tarball
Inspecting AppArmor configuration
Gathering system information
Copy processes list to the final report tarball
Copy disk usage information to the final report tarball
Copy memory usage information to the final report tarball
Copy server uptime to the final report tarball
Copy openSSL information to the final report tarball
Copy snap list to the final report tarball
Copy VM name (or none) to the final report tarball
Copy current linux distribution to the final report tarball
Copy network configuration to the final report tarball
Inspecting kubernetes cluster
Inspect kubernetes cluster
Inspecting dqlite
Inspect dqlite
Hello,
I have tried many time to install microk8s on rasp without success.
Then I decided to first install the extra-rasp modules and then to install microk8s and it worked!
So please, put that step before the installation of microk8s
Tested on rasp4 with Ubuntu 22.04