kubelet: update documentation of the cgroupDriver setting#119441
kubelet: update documentation of the cgroupDriver setting#119441marquiz wants to merge 1 commit intokubernetes:masterfrom
Conversation
|
/lgtm |
|
LGTM label has been added. DetailsGit tree hash: 05037cfe43191e35281d6a83b34a5dc2ba56eed4 |
|
This PR may require API review. If so, when the changes are ready, complete the pre-review checklist and request an API review. Status of requested reviews is tracked in the API Review project. |
|
/triage accepted |
|
/assign @mrunalp |
|
/cc |
1962a1a to
16c4ad4
Compare
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: marquiz The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
|
||
| fs.BoolVar(&c.CgroupsPerQOS, "cgroups-per-qos", c.CgroupsPerQOS, "Enable creation of QoS cgroup hierarchy, if true top level QoS and pod cgroups are created.") | ||
| fs.StringVar(&c.CgroupDriver, "cgroup-driver", c.CgroupDriver, "Driver that the kubelet uses to manipulate cgroups on the host. Possible values: 'cgroupfs', 'systemd'") | ||
| fs.StringVar(&c.CgroupDriver, "cgroup-driver", c.CgroupDriver, "Driver that the kubelet uses to manipulate cgroups on the host. Possible values: 'cgroupfs', 'systemd'. Note: ignored if the KubeletCgroupDriverFromCRI feature gate is enabled and a sufficiently new version of a container runtime is used, in which case the correct cgroup driver is automatically detected.") |
There was a problem hiding this comment.
Can you be more specific about a container runtime version or re-frase this somehow? Do you mean the version that supports certain CRI API?
There was a problem hiding this comment.
Yes, this is about a version of the container runtime that supports the RuntimeConfig CRI rpc. In practice this means CRI-O v1.28+ and containerd 2.0+ (2.0 is not released yet).
Sure, I can reword it. I feel that talking about RuntimeConfig rpc is not useful information to the end-user. Do we want to pintpoint specific versions of container runtimes here? WDYT?
Examples:
Note: ignored if the KubeletCgroupDriverFromCRI feature gate is enabled and a container runtime supporting RuntimeConfig rpm is used, in which case the correct cgroup driver is automatically detected.")
OR
Note: ignored if the KubeletCgroupDriverFromCRI feature gate is enabled and a sufficiently new version of a container runtime is used (containerd v2.0 or later, cri-o v1.28 or later), in which case the correct cgroup driver is automatically detected.")
There was a problem hiding this comment.
Thank you. I like the former better, except rpm thing. I don't understand it. Is it a typo and you meant rpc?
Can we use CRI API or something similar instead?
There was a problem hiding this comment.
Argh, my fat fingers and brain, rpm vs rpc 🙈
Changed to
Note: ignored if the KubeletCgroupDriverFromCRI feature gate is enabled and a container runtime supporting the RuntimeConfig CRI rpc is used, in which case the correct cgroup driver is automatically detected.
ping @sftim
you have educated opinions on these
/cc sftim
There was a problem hiding this comment.
Your last edition looks good to me. Please, update the PR and I'll lgtm it.
16c4ad4 to
d9bba2f
Compare
|
/lgtm |
|
LGTM label has been added. DetailsGit tree hash: 3c41a8aab24dd038ca53cce19a10a46e0e34c45a |
|
/assign @mrunalp @derekwaynecarr @dchen1107 |
|
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
|
The Kubernetes project currently lacks enough active contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
|
@marquiz @SergeyKanzhelev i see the note to bump this feature to beta in kubernetes/enhancements#4033 (comment) is that in another PR or will this be updated? |
|
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
|
@k8s-triage-robot: Closed this PR. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
What type of PR is this?
/kind documentation
What this PR does / why we need it:
Update the help text of the kubelet's
cgroupDriverconfig setting (and the--cgroup-driverflag) to descrivbeWhich issue(s) this PR fixes:
Special notes for your reviewer:
Complements #118770
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: