-
Notifications
You must be signed in to change notification settings - Fork 15.1k
add note for cgroup v1 deprecation during kubelet upgrade #53082
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
base: dev-1.35
Are you sure you want to change the base?
Conversation
👷 Deploy Preview for kubernetes-io-vnext-staging processing.
|
|
[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 |
✅ Pull request preview available for checkingBuilt without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
lmktfy
left a comment
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.
Thanks.
I recommend aligning closer to our style guide.
Also, make it clear that this advice is for Linux nodes. Other OS are available.
| If you are using cgroups v1, you should migrate to cgroups v2. | ||
| To explicitly enable cgroups v1 support for kubelet v1.35 or newer, | ||
| you must set the kubelet configuration option 'FailCgroupV1' to 'false'. You must also explicitly skip this validation. | ||
| For more information, see https://git.k8s.io/enhancements/keps/sig-node/5573-remove-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.
We should link to the docs about the deprecation, not to the KEP.
| If you are using cgroups v1, you should migrate to cgroups v2. | ||
| To explicitly enable cgroups v1 support for kubelet v1.35 or newer, | ||
| you must set the kubelet configuration option 'FailCgroupV1' to 'false'. You must also explicitly skip this validation. | ||
| For more information, see https://git.k8s.io/enhancements/keps/sig-node/5573-remove-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.
We should link to the docs about the deprecation, not to the KEP.
| ### Upgrade kubelet and kubectl | ||
|
|
||
| {{< note >}} | ||
| FailCgroupV1 is a kubelet configuration option that is set to 'true' by default. |
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.
Style and wording nit:
| FailCgroupV1 is a kubelet configuration option that is set to 'true' by default. | |
| On Linux nodes, the kubelet defaults to supporting only cgroups v2. | |
| For Kubernetes {{< skew currentVersion >}} the `FailCgroupV1` kubelet configuration option is set to true by default. |
| ### Upgrade kubelet and kubectl | ||
|
|
||
| {{< note >}} | ||
| FailCgroupV1 is a kubelet configuration option that is set to 'true' by default since v1.35. |
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.
Style and wording nit:
| FailCgroupV1 is a kubelet configuration option that is set to 'true' by default since v1.35. | |
| On Linux nodes, the kubelet defaults to supporting only cgroups v2. | |
| For Kubernetes {{< skew currentVersion >}} the `FailCgroupV1` kubelet configuration option is set to true by default. |
| The cgroups v1 support is deprecated and will be removed in a future release. | ||
| If you are using cgroups v1, you should migrate to cgroups v2. | ||
| To explicitly enable cgroups v1 support for kubelet v1.35 or newer, | ||
| you must set the kubelet configuration option 'FailCgroupV1' to 'false'. You must also explicitly skip this validation. |
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.
| you must set the kubelet configuration option 'FailCgroupV1' to 'false'. You must also explicitly skip this validation. | |
| you **must** set the kubelet configuration option `FailCgroupV1` to false. You must also explicitly skip this kubeadm validation. |
| The cgroups v1 support is deprecated and will be removed in a future release. | ||
| If you are using cgroups v1, you should migrate to cgroups v2. | ||
| To explicitly enable cgroups v1 support for kubelet v1.35 or newer, | ||
| you must set the kubelet configuration option 'FailCgroupV1' to 'false'. You must also explicitly skip this validation. |
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.
| you must set the kubelet configuration option 'FailCgroupV1' to 'false'. You must also explicitly skip this validation. | |
| you **must** set the kubelet configuration option `FailCgroupV1` to false. You must also explicitly skip this kubeadm validation. |
|
|
||
| {{< note >}} | ||
| FailCgroupV1 is a kubelet configuration option that is set to 'true' by default since v1.35. | ||
| If you are using cgroups v1, kubelet will fail to start if the FailCgroupV1 is not set.. |
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.
| If you are using cgroups v1, kubelet will fail to start if the FailCgroupV1 is not set.. | |
| If you are using cgroups v1 and the `FailCgroupV1` setting is not set to true, | |
| the kubelet reports an error and fails to start. |
|
|
||
| {{< note >}} | ||
| FailCgroupV1 is a kubelet configuration option that is set to 'true' by default. | ||
| If you are using cgroups v1, kubelet will fail to start if the FailCgroupV1 is not set. |
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.
| If you are using cgroups v1, kubelet will fail to start if the FailCgroupV1 is not set. | |
| If you are using cgroups v1 and the `FailCgroupV1` setting is not set to true, | |
| the kubelet reports an error and fails to start. |
neolit123
left a comment
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.
instead of including similar text in multiple places, can we include a note that links to a central blog post or a document that covers the problem?
Description
refer to kubernetes/system-validators#58 (comment)
Issue
xref: kubernetes/kubernetes#134744