Add kubelet vs kubeadm default cgroupfs driver

pull/41223/head
Marcelo Giles 2023-05-18 14:19:54 -07:00
parent 7404e00d14
commit 91060dde99
No known key found for this signature in database
GPG Key ID: F79A638016E48DFE
1 changed files with 6 additions and 6 deletions

View File

@ -6,7 +6,7 @@ weight: 20
<!-- overview --> <!-- overview -->
This page explains how to configure the kubelet cgroup driver to match the container This page explains how to configure the kubelet's cgroup driver to match the container
runtime cgroup driver for kubeadm clusters. runtime cgroup driver for kubeadm clusters.
## {{% heading "prerequisites" %}} ## {{% heading "prerequisites" %}}
@ -20,7 +20,8 @@ You should be familiar with the Kubernetes
The [Container runtimes](/docs/setup/production-environment/container-runtimes) page The [Container runtimes](/docs/setup/production-environment/container-runtimes) page
explains that the `systemd` driver is recommended for kubeadm based setups instead explains that the `systemd` driver is recommended for kubeadm based setups instead
of the `cgroupfs` driver, because kubeadm manages the kubelet as a systemd service. of the kubelet's [default `cgroupfs` driver](/docs/reference/config-api/kubelet-config.v1beta1),
because kubeadm manages the kubelet as a systemd service.
The page also provides details on how to set up a number of different container runtimes with the The page also provides details on how to set up a number of different container runtimes with the
`systemd` driver by default. `systemd` driver by default.
@ -32,9 +33,8 @@ This `KubeletConfiguration` can include the `cgroupDriver` field which controls
driver of the kubelet. driver of the kubelet.
{{< note >}} {{< note >}}
In v1.22 and later, if the user does not set the `cgroupDriver` field under `KubeletConfiguration`,
In v1.22, if the user is not setting the `cgroupDriver` field under `KubeletConfiguration`, `kubeadm` defaults it to `systemd`.
`kubeadm` will default it to `systemd`.
{{< /note >}} {{< /note >}}
A minimal example of configuring the field explicitly: A minimal example of configuring the field explicitly:
@ -81,7 +81,7 @@ you must refer to the documentation of the container runtime of your choice.
## Migrating to the `systemd` driver ## Migrating to the `systemd` driver
To change the cgroup driver of an existing kubeadm cluster to `systemd` in-place, To change the cgroup driver of an existing kubeadm cluster from `cgroupfs` to `systemd` in-place,
a similar procedure to a kubelet upgrade is required. This must include both a similar procedure to a kubelet upgrade is required. This must include both
steps outlined below. steps outlined below.