Skip to content

Commit 3bcd2dd

Browse files
authored
Merge pull request #41223 from mrgiles/36492_kubelet_cgroupdriver_value
Clarify kubelet vs kubeadm default cgroupDriver options
2 parents aa45d61 + 03fec1e commit 3bcd2dd

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

content/en/docs/tasks/administer-cluster/kubeadm/configure-cgroup-driver.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ weight: 20
66

77
<!-- overview -->
88

9-
This page explains how to configure the kubelet cgroup driver to match the container
9+
This page explains how to configure the kubelet's cgroup driver to match the container
1010
runtime cgroup driver for kubeadm clusters.
1111

1212
## {{% heading "prerequisites" %}}
@@ -20,7 +20,9 @@ You should be familiar with the Kubernetes
2020

2121
The [Container runtimes](/docs/setup/production-environment/container-runtimes) page
2222
explains that the `systemd` driver is recommended for kubeadm based setups instead
23-
of the `cgroupfs` driver, because kubeadm manages the kubelet as a systemd service.
23+
of the kubelet's [default](/docs/reference/config-api/kubelet-config.v1beta1) `cgroupfs` driver,
24+
because kubeadm manages the kubelet as a
25+
[systemd service](/docs/setup/production-environment/tools/kubeadm/kubelet-integration).
2426

2527
The page also provides details on how to set up a number of different container runtimes with the
2628
`systemd` driver by default.
@@ -32,9 +34,8 @@ This `KubeletConfiguration` can include the `cgroupDriver` field which controls
3234
driver of the kubelet.
3335

3436
{{< note >}}
35-
36-
In v1.22, if the user is not setting the `cgroupDriver` field under `KubeletConfiguration`,
37-
`kubeadm` will default it to `systemd`.
37+
In v1.22 and later, if the user does not set the `cgroupDriver` field under `KubeletConfiguration`,
38+
kubeadm defaults it to `systemd`.
3839
{{< /note >}}
3940

4041
A minimal example of configuring the field explicitly:
@@ -81,7 +82,7 @@ you must refer to the documentation of the container runtime of your choice.
8182

8283
## Migrating to the `systemd` driver
8384

84-
To change the cgroup driver of an existing kubeadm cluster to `systemd` in-place,
85+
To change the cgroup driver of an existing kubeadm cluster from `cgroupfs` to `systemd` in-place,
8586
a similar procedure to a kubelet upgrade is required. This must include both
8687
steps outlined below.
8788

0 commit comments

Comments
 (0)