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
Use systemd
as cgroup driver
#5325
Comments
Thinking again on this topic, Gardener can configure both kubelet and containerd (similarly to how it control the pause image) to use the wanted cgroup driver, so from this point of view the OS extensions should not do anything. What do you think? |
I can see how gardener modifies the |
@vpnachev do you have some thoughts on the above discussion? It may be that we have some time to pick this up in the near future. |
The Gardener project currently lacks enough contributors to adequately respond to all issues and PRs.
You can:
/lifecycle stale |
/remove-lifecycle stale |
I understand that this is only a prerequisite for enabling
And a few interesting things from https://blog.kintone.io/entry/2022/03/08/170206 For example (taken from the above link) regarding uber-go/automaxprocs:
And regarding the JDK version
|
The Gardener project currently lacks enough contributors to adequately respond to all issues and PRs.
You can:
/lifecycle stale |
/remove-lifecycle stale |
/assign @danielfoehrKn |
@danielfoehrKn @MrBatschner Could you check the PR description and tell whether this is still up-to-date/the plan you are pursuing? |
Sorry for the delay in answering. The PR linked above is meant to configure containerd and kubelet on Garden Linux to use systemd as cgroup driver if cgroup v2/unified hierarchy is detected (as Garden Linux 934 came with cgroup v2 support). However, this is just for Garden Linux. The CoreOS/FlatCar extension contains similar code and eventually, the Ubuntu and cHost extensions would require such code too - especially since the systemd announced to drop cgroup v1 support in a future release. Instead of having quite similar code to deal with the cgroup versions in each operating system extension separately, we should explore if this can be moved into the OS config part of Gardener itself - and that is the direction @danielfoehrKn and myself were looking into so far. Thus, this issue in my opinion is still relevant. |
How to categorize this issue?
/area open-source
/kind enhancement
What would you like to be added:
With #5255 we have switched the cgroup driver from
cgroupfs
tosystemd
for shoots >= 1.23. However, this change was reverted with #5324.Let's look into that the consequences of this change are, how the container runtime needs to be configured and how to properly roll this out.
Why is this needed:
Following upstream recommendations.
Work Items
systemd
for all k8s versions >= 1.24 as was done in https://github.com/gardener/gardener/pull/5255/files#diff-fc4776dd3fd3277fcbaac11c0bcfe15e6bd797038eb1cc601444de5ca4c3bc68 but later reverteddocker
configuration as that's not a possible configuration in Gardener for k8s >= 1.23cgroupfs driver
configuration iscontainerd
configuration to respect the selectedcgroupfs driver
systemd
as cgroupfs driverisContainerDEnabled
that indicates whichcgroupfs driver
is used.Open Questions
systemd
ascgroupfs driver
when the OS extensions have not been updated to respect this in their bootstrapping logic?The text was updated successfully, but these errors were encountered: