-
Notifications
You must be signed in to change notification settings - Fork 15.2k
docs: document kubelet cgroup driver detection from the runtime #42160
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
Changes from 2 commits
c50c151
7e208b0
0d2962b
fa73830
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -157,6 +157,12 @@ Starting with v1.22 and later, when creating a cluster with kubeadm, if the user | |||||
| the `cgroupDriver` field under `KubeletConfiguration`, kubeadm defaults it to `systemd`. | ||||||
| {{< /note >}} | ||||||
|
|
||||||
| For Kubernetes v1.28 and later, with the `KubeletCgroupDriverFromCRI` | ||||||
| [feature gate](/docs/reference/command-line-tools-reference/feature-gates/) | ||||||
| enabled and a container runtime that supports the `RuntimeConfig` CRI RPC, | ||||||
| the kubelet automatically detects the appropriate cgroup driver from the runtime, | ||||||
| and ignores the `cgroupDriver` setting within the kubelet configuration. | ||||||
|
|
||||||
| If you configure `systemd` as the cgroup driver for the kubelet, you must also | ||||||
| configure `systemd` as the cgroup driver for the container runtime. Refer to | ||||||
| the documentation for your container runtime for instructions. For example: | ||||||
|
|
@@ -251,6 +257,10 @@ sudo systemctl restart containerd | |||||
| When using kubeadm, manually configure the | ||||||
| [cgroup driver for kubelet](/docs/tasks/administer-cluster/kubeadm/configure-cgroup-driver/#configuring-the-kubelet-cgroup-driver). | ||||||
|
|
||||||
| Starting with v1.28 and later, you can enable automatic detection of the | ||||||
|
||||||
| Starting with v1.28 and later, you can enable automatic detection of the | |
| Starting with Kubernetes v1.28 and later, you can enable automatic detection of the |
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.
Aside, but also a bit relevant:
I'm slightly wary of saying “and later” about alpha features that we can't prove will graduate to stable.
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.
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.
given the concern over skew "and later" comments perhaps.. for Kubernetes v1.2.8, you can..
Outdated
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.
| Starting with v1.28 and later, you can enable automatic detection of the | |
| Starting with Kubernetes v1.28 and later, you can enable automatic detection of the |
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.
Fixed with In Kubernetes {{< skew currentVersion >}}
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -36,6 +36,11 @@ driver of the kubelet. | |
| {{< note >}} | ||
| In v1.22 and later, if the user does not set the `cgroupDriver` field under `KubeletConfiguration`, | ||
| kubeadm defaults it to `systemd`. | ||
|
|
||
| Starting with v1.28 and later, you can enable automatic detection of the | ||
|
||
| cgroup driver as an alpha feature. | ||
| See [systemd cgroup driver](/docs/setup/production-environment/container-runtimes/#systemd-cgroup-driver) | ||
| for more details. | ||
| {{< /note >}} | ||
|
|
||
| A minimal example of configuring the field explicitly: | ||
|
|
||
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.
bit of a tldr issue I believe.. giving the instructions above for kubelet config driven and default if not configured.. then ending with 1.28 alpha feature gate info.
Suggest mentioning the feature gate above in direct association with the kubelet config steps / options. Something like unless the alpha level feature gate is set to automatically retrieve the appropriate cgroup driver from the runtime, additional configuration may be required...
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.
I'm a bit cautious on this ("advertising" too much) as this is an alpha feature and there are no released container runtime supporting this, yet. When we get to beta, sure. WDYT @sftim
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.
good point...
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 document how Kubernetes behaves, even if the compatible runtimes don't exist on release day.