kelseyhightower / kubernetes-the-hard-way

Bootstrap Kubernetes the hard way. No scripts.
Apache License 2.0
41.26k stars 14.12k forks source link

Add RPi specific cgroup documentation #798

Open spatterIight opened 3 months ago

spatterIight commented 3 months ago

I followed this using 4 RPi Model B's and ran into an issue regarding runc/containerd -- with my pods being stuck in CrashLoopBackOff

The issue was that RPi's require a special cgroups modification to be used w/ kubernetes:

By default the cgroup memory option will be disabled, we will need to update this for Docker to be able to limit memory usage. 
Open /boot/cmdline.txt and append cgroup_enable=memory cgroup_memory=1.

https://alexsniffin.medium.com/a-guide-to-building-a-kubernetes-cluster-with-raspberry-pis-23fa4938d420


Since this repository is only written with ARM boards in mind (like the RPi) it may be good to add a note about this somewhere, seeing as how popular they are and likely that one may be used.

chosensamurai commented 5 days ago

Thanks a lot for posting this, I was doing exactly this and kept running into the crashloopbackoff thing. Good learning experience though :)