Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add RPi specific cgroup documentation #798

Open
spatterIight opened this issue Jul 28, 2024 · 2 comments
Open

Add RPi specific cgroup documentation #798

spatterIight opened this issue Jul 28, 2024 · 2 comments

Comments

@spatterIight
Copy link

spatterIight commented Jul 28, 2024

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
Copy link

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

@mattwelke
Copy link

mattwelke commented Dec 28, 2024

Adding a note for anyone else with the particular issue I ran into...

It must be appended. Don't add it as a new line. My file on one of my worker nodes:

console=serial0,115200 console=tty1 root=PARTUUID=84440d60-02 rootfstype=ext4 fsck.repair=yes rootwait cgroup_enable=memory cgroup_memory=1

I was using Raspberry Pi OS Lite 64-bit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants