k3s-ansible
k3s-ansible copied to clipboard
Add support raspbian bullseye
This PR adds support for raspbian bullseye. It has been tested on newly flashed pi3b+ nodes (combination of buster and bullseye) with only SSH enabled. (I do currently not have pi4 nodes in my possession)
Test run output: https://gist.github.com/husjon/00965e50afffd8865e8ac3db66edb30f
What's been changed:
- Added check for Raspbian Bullseye
- Added task switch for Raspbian distribution codenames
- Removed requirement for
iptables
on Rasbpian Bullseye (this is because bullseye comes withnftables
preinstalled) - Removed 'cgroup_enable=cpuset' for bullseye.
On bullseye using
Pi3B+
this seem to bring the server to its knees, seeing average loads up to 15 while agents are added. This makes it so that the agents are unable to communicate with the server. (screenshot in comments)
Here's a screenshot of the load from the server while adding agents.
I was lucky to have the SSH connection open during this, the connection is barely working and htop
is updating only every now and then.
Nice work! I would have solved it in nearly the same way. However, adding the codename (which is a one to one map of major version) is redundant imo, and I would suggest we use only one of major version and codename.
Thanks for the feedback, I don't mind either solution, I just found it easier to read the codenames rather than version numbers for the task filenames. :)
I do however realize that major_release
is used in the prior task setting the facts raspberrypi/tasks/main.yml#L36-L40, so might as well continue this trend.
I'll prepare a commit with the necessary changes.
@ozgurgul and @JohanNicander, is there a reason this fix is approved but hasn't been merged?
@ozgurgul and @JohanNicander, is there a reason this fix is approved but hasn't been merged?
I had to implement this fix the other day setting up a new Raspberry Pi cluster with Raspberry Pi OS, so I'm wondering the same thing. This seems like a simple fix that should be merged with little issue.
@ozgurgul and @JohanNicander, is there a reason this fix is approved but hasn't been merged?
I had to implement this fix the other day setting up a new Raspberry Pi cluster with Raspberry Pi OS, so I'm wondering the same thing. This seems like a simple fix that should be merged with little issue.
I'm not a contributor to this repo. Hence I can't merge this PR but otherwise I share the same thoughts.
Hi @St0rmingBr4in what is required for this PR to be merged? Thanks in advance
Please can this PR get merged sooner rather than later. Thanks.
This is really helpful! Huge thanks to @husjon
tested this on my raspberry pi cm4 cluster and totally works 👍
I'm SO tempted to use this. I tried to spin up my cluster with an aarch64
OS instead of armv7
and it didn't really work out for me, but it seems that this would solve my issue completely.
I say this PR should be merged!
Closing in favor of changes in https://github.com/k3s-io/k3s-ansible/pull/151