-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
cgroup: move proccesses from root group to new /init group #3242
Conversation
- Cgroupv2 fix as per k3s-io/k3s#3237 & k3s-io/k3s#3242
3afc99e
to
c9f8c46
Compare
Can we have CI for cgroup2? (#2887) 🙏 |
(this is merged) |
b6b1d50
to
8d27d8f
Compare
Lets see how the tests look, but you need signoff on your commits. |
Could you rebase with #3282 to test the change with rootless? |
This looks good, but needs a rebase in order to get the CI checks to run. |
322cd44
to
bbe764d
Compare
need rebase code base |
- Ref: see discussion at k3s-io#3237 Signed-off-by: Thorsten Klein <[email protected]>
Signed-off-by: Thorsten Klein <[email protected]>
…groups Signed-off-by: Thorsten Klein <[email protected]>
Signed-off-by: Thorsten Klein <[email protected]>
Signed-off-by: Thorsten Klein <[email protected]>
Signed-off-by: Thorsten Klein <[email protected]>
Signed-off-by: Thorsten Klein <[email protected]>
@xiaods done ✔️ |
Closing as Out of Date and has been superseded by other PRs. |
Proposed Changes
If there are processes running in the root cgroup on a cgroupv2 enabled system, move them to a new
/init
group and enable subtree_control.For further info, see the discussion and links in the previous PR: #3237
Types of Changes
Fix for cgroupv2 support.
Verification
Run on a cgroupv2 enabled system
Linked Issues
Further Comments
This is my first time touching cgroups in Go code and reading/writing that part of the k3s code, so there may be some things that could be done different.
The way it's written now, it should only have an effect if there are processes running under the root cgroup.