-
Notifications
You must be signed in to change notification settings - Fork 475
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
WIP: Enable cgroup v2 support #652
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
1b84b15
to
6387c31
Compare
Signed-off-by: Harshal Patil <harpatil@redhat.com>
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
/remove-lifecycle stale |
/cc @giuseppe |
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
/remove-lifecycle stale |
Any updates on this? I think k8s v1.22 is the version which officially supports cgroupv2 kubernetes/enhancements#2254 (although it was possible to make k8s work with cgroupv2 from prior versions). Also FCOS 34 and later have cgroupv2 enabled by default (however it is disabled in Openshift images) Is there a plan for Openshift/OKD 4.9 to have an option for enabling that? P.S. If I understand correctly, it is even possible just now to switch to cgroup v2 by providing kernel args as MC. @giuseppe Is it the only required change to make openshift work with cgroup v2? |
yes, that is the only change required for Kubernetes to switch to cgroup v2 |
Inactive enhancement proposals go stale after 28d of inactivity. See https://github.com/openshift/enhancements#life-cycle for details. Mark the proposal as fresh by commenting If this proposal is safe to close now please do so with /lifecycle stale |
/remove-lifecycle stale |
|
||
### Non-Goals | ||
|
||
* Until we have more in-depth understanding of the impact of enabling cgroup v2 on the workloads, we won't make it default and replace it with cgroup v1. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we start considering it as default now?
#### Enable cgroup v2 on master nodes | ||
```yaml | ||
apiVersion: machineconfiguration.openshift.io/v1 | ||
kind: KubeletConfig |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kind: KubeletConfig | |
kind: MachineConfig |
#### Enable cgroup v2 on worker nodes | ||
```yaml | ||
apiVersion: machineconfiguration.openshift.io/v1 | ||
kind: KubeletConfig |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kind: KubeletConfig | |
kind: MachineConfig |
@harche I think we need to add a All apps which are deployed on OKD should be revisited to ensure they are not depending on cgroupv1 hierarchy. E.g. right now cluster logging operator has an issue with cgroup v2: see openshift/origin-aggregated-logging#2182. BTW this is not the only change needed in CLO to support cgroup v2, I see there are other dependencies on it in other places, however this is a fatal issue which causes ES to fail to start. |
Inactive enhancement proposals go stale after 28d of inactivity. See https://github.com/openshift/enhancements#life-cycle for details. Mark the proposal as fresh by commenting If this proposal is safe to close now please do so with /lifecycle stale |
In a recent OKD working groups, there is this item:
|
/remove-lifecycle stale |
@m-yosefpor this enhancement is for both OCP and OKD. In OKD we have a liberty of enabling some features before they have landed in OCP |
nice😍. thanks |
Closing this in favor of #939 |
Add support for cgroup v2 in OpenShift
Signed-off-by: Harshal Patil harpatil@redhat.com