Kubernetes 1.38 Breaking Change: How to Prepare Nodes for CRI-Reported cgroup Drivers (KEP-4033)

Kubernetes 1.38 Breaking Change: How to Prepare Nodes for CRI-Reported cgroup Drivers (KEP-4033)

Kubernetes 1.38 cgroup Driver Change: How to Prepare Every Node Before December 16

A kubelet that cannot learn its cgroup driver from the container runtime will, in Kubernetes v1.38, refuse to register the node at all. That is the headline of the kubernetes 1.38 cgroup driver change, and it turns a quiet configuration detail into a hard startup dependency. The v1.38 release is planned for December 16, 2026, so platform teams have roughly two weeks to find every node still running a runtime that cannot answer the question. The fix is rarely hard. The risk is that you discover the problem mid-upgrade, on a node that has already been drained, with the old kubelet binary gone. This runbook gives you a pre-upgrade audit, an upgrade order that keeps the blast radius to one node, a kubeadm-specific checklist, and a rollback path that actually works.

What this covers: how the CRI RuntimeConfig handshake works, what changes in v1.38 (and what may still change), a fleet audit script, runtime upgrade paths for containerd and CRI-O, the kubeadm preflight change, two adjacent 1.38 items (swap and kubectl WebSockets), and rollback.

Context and Background

Linux exposes two ways to manage cgroups on a node: the cgroupfs driver, where the kubelet and runtime write directly into /sys/fs/cgroup, and the systemd driver, where systemd owns the hierarchy and everyone else asks it for slices and scopes. For years the kubelet and the runtime each had their own setting, and the two had to match. When they did not, the failure was rarely loud. Pods might start, but resource accounting, eviction and QoS enforcement would behave strangely, because two managers believed they owned the same tree.

KEP-4033, “Discover cgroup driver from CRI”, was written to end that class of bug. Instead of two settings, there would be one: the runtime decides, and the kubelet asks. According to the KEP-4033 tracking page, the feature went alpha in v1.28 behind the KubeletCgroupDriverFromCRI feature gate, beta (on by default) in v1.31, and stable in v1.34. At GA, the kubelet’s cgroupDriver configuration field and --cgroup-driver flag were deprecated, but the kubelet kept a fallback. If the runtime did not implement the new RPC, the kubelet quietly used the old setting and emitted a warning metric.

That fallback is what v1.38 targets. The KEP names the runtimes that implement the RPC: containerd v2.0 and later, and CRI-O v1.28 and later. It also states plainly that containerd v1.7 is the last supported runtime line without it. containerd 1.7 reached end of extended support on September 30, 2026, according to endoflife.date, so the timing is not an accident.

If you are still deciding between runtimes, our containerd vs CRI-O runtime comparison covers the broader trade-offs. This post assumes you already run one of them and need to get it ready. For the wider list of v1.38 enhancements and deprecations, see our Kubernetes 1.38 preview; here we go deep on one breaking change and the node-level work it demands.

The distinction matters because most “what’s new in 1.38” coverage stops at “upgrade your runtime”. In practice, the runtime upgrade is the easy part. The hard parts are configuration drift between the kubelet and runtime files, systemd unit ordering, kubeadm-generated configs that still pin cgroupDriver, and node images built months ago that nobody has re-inspected.

How the Kubernetes 1.38 cgroup Driver Handshake Works

In Kubernetes v1.38, the kubelet is planned to take its cgroup driver only from the container runtime, via the CRI RuntimeConfig RPC. The kubelet’s own cgroupDriver field is deprecated and rejected unless the temporary LegacyCgroupDriverFallback feature gate is enabled. If the runtime cannot report a driver, the kubelet exits before registering the node.

Kubernetes 1.38 cgroup driver discovery path from kubelet to containerd or CRI-O via the CRI RuntimeConfig RPC

Figure 1: The kubernetes 1.38 cgroup driver decision path. The runtime’s own configuration is the single source of truth; the kubelet setting survives only behind a temporary gate.

The diagram shows three layers. At the top, the kubelet starts and opens its CRI connection. In the middle, the runtime answers RuntimeConfig with a Linux configuration block that names either SYSTEMD or CGROUPFS. At the bottom, that answer is derived from runtime configuration you already own: the SystemdCgroup option on containerd’s runc handler, or cgroup_manager in CRI-O. The fallback branch on the right only exists if an operator deliberately enables the legacy gate.

The runtime is now the single source of truth

The core design decision behind the Kubernetes 1.38 cgroup driver behaviour, and in KEP-4033 generally, is that the component that actually creates container cgroups should be the one that declares how they are managed. The kubelet still creates pod-level and QoS-level cgroups, so it must agree with the runtime. Asking the runtime removes the possibility of disagreement rather than detecting it after the fact.

For containerd, the logic is worth understanding because it is not just “read one flag”. The containerd pull request that implemented the RPC (containerd PR 8722) describes how the reported driver is chosen. containerd walks its runtime handlers, starting with the default handler and then the rest in alphabetical order, and reports the driver from the first runc-based handler that sets one. If none do, it checks whether systemd is running on the host. The containerd CRI configuration docs add a warning: all runc-based runtime classes should use the same value.

That detail is the source of a subtle failure mode. Suppose your default handler is runc with SystemdCgroup = true, but someone added a runc-debug handler months ago with SystemdCgroup = false. The kubelet will be told systemd, which is correct for most pods. Pods scheduled with the runc-debug RuntimeClass, however, will have their containers placed under a different manager than their pod cgroup. The handshake makes the common case safe; it does not validate every handler. Your audit has to.

For CRI-O, the equivalent setting is cgroup_manager in the [crio.runtime] table of crio.conf or a drop-in file. CRI-O has long defaulted to the systemd manager on systemd hosts, and CRI-O v1.28 and later implement the RPC, per the KEP. Most CRI-O fleets therefore need little more than a version check, though drop-in overrides deserve the same scrutiny as containerd handlers.

What exactly changes in v1.38

The release team’s v1.38 sneak peek, published November 23, 2026, lists this as a deprecation with breaking behaviour. As summarised in independent coverage of that post, four things change together. First, the legacy method of setting the driver in kubelet configuration is disabled by default. Second, the kubelet rejects the cgroupDriver field unless an operator re-enables the temporary LegacyCgroupDriverFallback feature gate. Third, if the kubelet cannot obtain the driver from the runtime, it exits before registering the node. Fourth, kubeadm stops defaulting cgroupDriver to systemd, and its preflight checks fail on runtimes that lack the RPC.

The consequence that catches people is ordering. Under the old model, a kubelet could start, read its own config file and proceed even if the runtime socket was slow to appear. Under the new model, the runtime must be up and answering CRI calls before the kubelet can finish initialisation. Nodes whose systemd units do not express that dependency may flap during boot.

There is also an important caveat about how final this is. On November 26, 2026, three days after the sneak peek, a contributor opened kubernetes PR 144484, “Defer removal of cgroupDriver fallback to a future release”. Its description says the kubelet will keep supporting the fallback beyond 1.38, and that the underlying change, tracked as PR 136731, is postponed to 1.39. At the time of writing that PR was open, had an lgtm label and partial approvals, and the v1.38 code freeze was in effect. The sneak peek itself warns that its contents may change before release.

So the honest status on November 29 is: the announced plan is “disabled by default in 1.38”, and an open pull request may push the hard cutover to 1.39. Neither outcome changes what you should do. The fallback is deprecated either way, containerd 1.7 is already past end of life, and the work below is identical whether the deadline is December 2026 or the 1.39 cycle. Confirm the final behaviour against the official v1.38 changelog on release day.

Why “it worked on 1.37” is not evidence

The most dangerous assumption about the Kubernetes 1.38 cgroup driver change is that a healthy node is a ready node. Since v1.34, the kubelet has emitted a cri_losing_support metric when it falls back because the runtime lacks the RPC. The KEP describes a version label on that metric indicating the release in which support is dropped; for containerd 1.7 it reads 1.38. PR 144484 proposes changing that label to 1.39.0. Either way, a node that “works fine” on 1.37 may be working only because of the fallback.

That is why the audit below queries the runtime directly rather than trusting the kubelet’s behaviour. A healthy 1.37 node tells you nothing about whether the kubelet asked the runtime or answered its own question.

Walk-through: Auditing and Upgrading Nodes for the Kubernetes 1.38 cgroup Driver Change

The runbook has five phases: inventory, per-node verification, remediation, controlled upgrade, and rollback readiness. Each phase produces an artefact you can review before moving on. The aim is that no node is drained until you already know it will come back.

Phase 1: Inventory runtimes across the fleet

Every Kubernetes 1.38 cgroup driver audit starts from the API server, because it already knows what every node reports. The containerRuntimeVersion field in node status gives you the runtime name and version without logging into anything.

# List every node with its kubelet version, runtime and OS image
kubectl get nodes -o custom-columns=\
NAME:.metadata.name,\
KUBELET:.status.nodeInfo.kubeletVersion,\
RUNTIME:.status.nodeInfo.containerRuntimeVersion,\
OS:.status.nodeInfo.osImage,\
KERNEL:.status.nodeInfo.kernelVersion

# Flag nodes whose runtime is below the KEP-4033 minimums
kubectl get nodes -o json | jq -r '
  .items[] |
  [.metadata.name, .status.nodeInfo.containerRuntimeVersion] | @tsv' |
awk -F'\t' '
  /containerd:\/\/1\./  {print "UPGRADE-RUNTIME\t"$0; next}
  /cri-o:\/\/1\.(1[0-9]|2[0-7])\./ {print "UPGRADE-RUNTIME\t"$0; next}
  {print "ok\t"$0}'

Treat the second command as a first-pass filter, not a verdict. Vendor-patched builds sometimes report unusual version strings, and some distributions ship containerd under a different package name. Anything the filter cannot parse should be checked by hand.

Next, check whether the kubelet is currently relying on the fallback. If you scrape kubelet metrics, search for the cri_losing_support series; your Prometheus naming may add a kubelet_ prefix depending on how the metric is registered, so search for the substring rather than an exact name. Any node emitting it is, by definition, not ready for the new behaviour.

Phase 2: Verify each node directly

The inventory tells you which nodes are likely fine. The per-node check proves it. The crictl tool, from the cri-tools project, includes a runtime-config subcommand that calls the same RPC the kubelet uses, according to the crictl documentation. If it returns a cgroup driver, the kubelet will get the same answer.

Kubernetes 1.38 cgroup driver pre-upgrade audit decision flow for each node

Figure 2: Per-node audit flow. A node is ready only when the runtime reports a driver, that driver matches the kubelet file, and every runc handler agrees.

The flow in Figure 2 has three gates. The first asks whether the runtime answers the RPC at all; an “unimplemented” error means a runtime upgrade is mandatory. The second compares the reported driver with whatever the kubelet configuration currently says, because a mismatch today means the node has been running on the kubelet’s opinion rather than the runtime’s. The third looks inside the runtime configuration for handlers that disagree with each other.

The script below is a starting point you can run over SSH or as a privileged DaemonSet. It is illustrative and written for this post; adapt paths for your distribution.

#!/usr/bin/env bash
# preflight-138-cgroup.sh - illustrative per-node audit for the 1.38 cgroup driver change
set -uo pipefail
SOCK="${CRI_SOCK:-unix:///run/containerd/containerd.sock}"
KCFG="${KUBELET_CONFIG:-/var/lib/kubelet/config.yaml}"
echo "node: $(hostname)"

# 1. cgroup version on the host (v2 reports cgroup2fs)
echo "cgroupfs-type: $(stat -fc %T /sys/fs/cgroup)"

# 2. Ask the runtime what it reports over CRI RuntimeConfig
if out=$(crictl --runtime-endpoint "$SOCK" runtime-config 2>&1); then
  echo "runtime-config: $(echo "$out" | tr -d '\n' | head -c 300)"
else
  echo "FAIL runtime-config RPC not available: $out"
fi

# 3. What the kubelet file says today (deprecated field)
grep -E '^\s*cgroupDriver:' "$KCFG" 2>/dev/null \
  && echo "WARN kubelet config still sets cgroupDriver" \
  || echo "ok kubelet config has no cgroupDriver field"
grep -rE -- '--cgroup-driver' /etc/systemd/system/kubelet.service.d/ \
  /etc/default/kubelet /etc/sysconfig/kubelet 2>/dev/null \
  && echo "WARN --cgroup-driver flag present"

# 4. Handler consistency inside the runtime config
if command -v containerd >/dev/null; then
  containerd config dump 2>/dev/null | grep -nE 'runtimes\.|SystemdCgroup'
fi
if command -v crio >/dev/null; then
  crio config 2>/dev/null | grep -nE '^\s*cgroup_manager'
fi

# 5. Unit ordering: kubelet should start after the runtime
systemctl show kubelet -p After -p Wants -p Requires | tr ' ' '\n' \
  | grep -E 'containerd|crio' || echo "WARN kubelet unit has no explicit runtime dependency"

Run it on one node per node pool first, then on all. Treat its output as the Kubernetes 1.38 cgroup driver readiness record for that pool. Collect the output centrally. A spreadsheet with one row per node and columns for each gate is enough; the point is that someone signs off on it before the first drain.

Interpret the results with care. A node on cgroup v1 is a separate problem: since v1.35 the kubelet refuses to start on cgroup v1 hosts unless failCgroupV1: false is set, and the v1.38 sneak peek describes that setting as a short-term measure. If any node prints tmpfs for the cgroup filesystem type, it is on v1 and needs an OS-level migration plan, not just a runtime upgrade. Our guide to CPU throttling, CFS quota and cgroup v2 limits explains how v2 accounting changes workload behaviour once you get there.

Phase 3: Remediate the runtime

For containerd 1.7 nodes, the remediation is a major-version runtime upgrade to 2.x. That is a bigger change than a patch bump. containerd 2.0 introduced configuration version 3, and the CRI plugin path moved. In the version 2 format used by 1.x, the systemd option lives under plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc.options. In version 3, it lives under plugins.'io.containerd.cri.v1.runtime'.containerd.runtimes.runc.options, per the containerd CRI config documentation.

# /etc/containerd/config.toml for containerd 2.x (config version 3)
version = 3
[plugins.'io.containerd.cri.v1.runtime'.containerd.runtimes.runc.options]
  SystemdCgroup = true

containerd 2.x can migrate older configuration formats on load, but do not rely on that silently in production. Generate a fresh default with containerd config default, port your registry mirrors, sandbox image and handler settings by hand, then diff the result of containerd config dump before and after. Pay special attention to deprecated 1.x options such as the old registry mirrors table, which 2.x expects to move into config_path host files.

Which 2.x line should you pick? As of the endoflife.date data, containerd 2.3 is a long-term support line with support listed through April 30, 2028; 2.4 is the newest line, with support listed into May 2027; 2.0 is also LTS, with extended support listed to March 1, 2027. For a node fleet you upgrade a few times a year, an LTS line minimises churn. Check your Kubernetes distribution’s tested runtime matrix before choosing; managed platforms often pin a specific line.

For CRI-O, the remediation is usually a minor upgrade. CRI-O versions track Kubernetes minor versions, so a cluster moving to 1.38 will typically move CRI-O in lockstep anyway. Confirm that no drop-in under /etc/crio/crio.conf.d/ sets cgroup_manager = "cgroupfs" on a systemd host, and that conmon_cgroup is consistent with the chosen manager.

Phase 4: Fix kubelet and kubeadm configuration

Once the runtime reports the right driver, remove the deprecated field from the kubelet. On a plain kubelet, delete cgroupDriver from /var/lib/kubelet/config.yaml and drop any --cgroup-driver flag from the unit or environment files. If the runtime and the old field agree, removal changes nothing at runtime on 1.37 but makes the node 1.38-clean.

kubeadm clusters need extra care because kubeadm stores the cluster-wide kubelet configuration in the kubelet-config ConfigMap in kube-system, and kubeadm upgrade node rewrites the local file from it. Editing only the local file is not enough; the next upgrade will put the field back.

# Inspect the cluster-wide kubelet config kubeadm will apply
kubectl -n kube-system get cm kubelet-config -o yaml | grep -n cgroupDriver

# Edit the ConfigMap and remove the cgroupDriver line
kubectl -n kube-system edit cm kubelet-config

# On each node, re-render the local kubelet config from the ConfigMap
sudo kubeadm upgrade node phase kubelet-config
sudo systemctl restart kubelet

Also search your infrastructure-as-code. Cluster API templates, kubeadm InitConfiguration/JoinConfiguration files with an embedded KubeletConfiguration, Ansible roles and Terraform user-data often hard-code cgroupDriver: systemd. Under the announced 1.38 behaviour, kubeadm no longer adds that default, but a template that sets it explicitly will now produce a kubelet that rejects its own config. The fix is deleting lines, not adding them.

Finally, add explicit systemd ordering so the kubelet waits for the runtime. A drop-in with After=containerd.service and Wants=containerd.service (or the CRI-O equivalents) is enough. It costs nothing on 1.37 and prevents boot-time flapping on 1.38.

Phase 5: Upgrade in the right order

Order matters because two independent things are changing: the runtime and the kubelet. Changing both at once on the same node doubles the number of possible causes when something fails. The safest sequence separates them in time.

Kubernetes 1.38 cgroup driver node upgrade sequence with runtime upgrade before kubelet upgrade

Figure 3: Node-level upgrade sequence. The runtime is upgraded and validated on 1.37 first; the kubelet moves to 1.38 only after the runtime has proved it reports a driver.

Figure 3 shows the sequence for one node. The operator cordons and drains, upgrades the runtime while the kubelet is still on 1.37, restarts both, and confirms that crictl runtime-config reports the expected driver. The node is uncordoned and left to run real workloads for a soak period. Only later, during the cluster upgrade to 1.38, is the kubelet binary replaced. If the 1.38 kubelet then fails, you know the runtime is not the cause.

In fleet terms, this means two waves. Wave one, which you can start today on 1.37, upgrades runtimes and cleans configuration. Wave two is the normal 1.38 upgrade: control plane first, then nodes, respecting the version-skew policy that allows kubelets to lag the API server. Do not merge the waves to save a maintenance window. The time you save is lost many times over the first time a node fails to rejoin and you cannot tell which change broke it.

A reasonable cadence for wave one is a single canary node per pool, a 24-hour soak, then batches sized to your PodDisruptionBudgets and spare capacity. As an illustrative example, a pool of 40 nodes with headroom for four nodes out at once could be done in ten batches. If each batch takes 20 minutes to drain, upgrade and rejoin, that is a little over three hours of rolling work after the canary. Your numbers will differ; the point is to calculate them before the window, not during it.

Immutable-image fleets follow the same logic with different mechanics. Build a new node image with containerd 2.x and a clean kubelet config, roll a new node group alongside the old one on 1.37, and shift workloads. When the cluster moves to 1.38, the node image changes only the kubelet. Teams using autoscalers such as Karpenter should update the node template or AMI selector first, so newly provisioned nodes are compliant before old ones are retired.

Rollback: what you can and cannot undo

Kubernetes 1.38 cgroup driver rollback options when a node fails to register after upgrade

Figure 4: Rollback decision tree. The temporary gate buys time on 1.38; downgrading the kubelet is the last resort and is only clean if the runtime was upgraded in an earlier wave.

Figure 4 lays out three rollback levels in order of preference. The cheapest is fixing the runtime configuration in place: most failures in testing come from a runtime that answers the RPC but reports an unexpected driver because a handler disagrees. Correct the handler, restart the runtime, then the kubelet.

The second level is the temporary escape hatch. If the runtime genuinely cannot report a driver and you must get the node back, enable the LegacyCgroupDriverFallback feature gate in the kubelet configuration and keep the cgroupDriver field. The gate is described as deprecated and temporary; treat it as a pager-duty tool, open a ticket the moment you use it, and expect it to disappear in a later release. If PR 144484 merges and the fallback stays enabled by default in 1.38, this level is effectively automatic, but you should still track the nodes that rely on it.

The third level is reverting the kubelet binary to 1.37. Kubernetes’ skew policy allows a 1.37 kubelet to talk to a 1.38 API server, so this is supported in principle. It is clean only if you followed the two-wave approach, because a 1.37 kubelet with an upgraded runtime is exactly the configuration you already soaked in wave one. Reverting the runtime from containerd 2.x back to 1.7 is the option to avoid: 1.7 is past end of life, and its configuration format differs.

Two Adjacent 1.38 Changes Worth Bundling Into the Same Window

Two other items in the v1.38 sneak peek affect the same people, the node and platform owners, and fit naturally into the same change window. Neither is as severe as the driver change, but both can surprise automation.

Swap limits move to pod-level resources

Kubernetes supports node swap through the LimitedSwap behaviour on cgroup v2 nodes, which the project described in its October 2026 post on scaling workloads with node swap. Under the 1.38 plan, as reported from the sneak peek, swap limits on such nodes will be based on a pod’s pod-level memory settings when those are used. Pod-level resources (KEP-2837, gate PodLevelResources) are expected to reach stable in 1.38.

The practical consequence is specific. A pod whose pod-level memory request equals its pod-level limit gets no swap, even if an individual container inside it has a lower request of its own. If you run swap-enabled nodes and have begun adopting pod-level resources, review which workloads you expected to swap. For most fleets, which do not enable swap at all, this is a no-op.

kubectl WebSocket opt-out variables are removed

Over recent releases, kubectl exec, attach, cp and port-forward moved from the SPDY streaming protocol to WebSockets (KEP-4006). During the transition, two environment variables let users fall back to SPDY: KUBECTL_REMOTE_COMMAND_WEBSOCKETS and KUBECTL_PORT_FORWARD_WEBSOCKETS. The sneak peek lists both for removal in 1.38; setting them will have no effect.

The risk sits in CI images and bastion hosts. If someone set those variables to work around a proxy or load balancer that mishandled WebSocket upgrades, that workaround stops working with a 1.38 kubectl. Search your pipelines and shell profiles now, and test streaming commands through every proxy path you use before upgrading client tooling.

Trade-offs, Gotchas, and What Goes Wrong

The Kubernetes 1.38 cgroup driver change is conceptually small, which is exactly why teams under-prepare for it. These are the failure patterns most likely to bite, derived from how the mechanism works rather than from any published incident data.

Mixed handlers report one answer. As described above, containerd reports the driver of the first handler that sets one, starting with the default. GPU runtimes, Kata Containers, gVisor or debug handlers configured separately can disagree silently. The kubelet will be satisfied while a subset of pods runs under the wrong manager. Audit every handler, not only runc.

Configuration management fights you. If Ansible, Puppet or a node bootstrap script re-renders the kubelet file on every run, deleting cgroupDriver by hand lasts until the next converge. Worse, a template that keeps adding the field produces a 1.38 kubelet that rejects its own config. Fix the source, not the node.

Boot ordering on slow hosts. Edge devices and heavily loaded VMs can take noticeably longer to start the runtime than the kubelet. Without After= ordering, the 1.38 kubelet may exit, be restarted by systemd, and eventually succeed. That looks healthy in dashboards but adds minutes to recovery after a power event, and it hides the underlying issue.

The containerd 2.x jump is bigger than the driver fix. Upgrading from 1.7 to 2.x also changes the configuration schema, registry mirror handling and some deprecated features. Teams sometimes blame the 1.38 kubelet for failures that were actually introduced by the runtime upgrade. The two-wave approach exists to keep those causes apart.

Managed platforms are not automatically safe. Managed Kubernetes services generally control the runtime on their default node images, so most managed node groups should be compliant. Custom images, self-managed node groups and bring-your-own-AMI setups are your responsibility. Check your provider’s 1.38 release notes when they publish, rather than assuming.

Mid-release uncertainty. The open PR to defer the fallback removal means the exact 1.38 behaviour was not final on November 29, 2026. Writing automation that depends on the gate existing, or on it not existing, is fragile. Write automation that makes the gate unnecessary.

The escape hatch becomes permanent. The single most common anti-pattern with deprecation gates is enabling one during an incident and never removing it. Track every node with LegacyCgroupDriverFallback enabled as debt with an owner and a date.

Practical Recommendations

Treat the kubernetes 1.38 cgroup driver change as a runtime-hygiene project that happens to have a deadline, not as a kubelet upgrade task. The work is front-loaded: nearly everything can be done on 1.37, today, with no dependency on the final 1.38 release notes.

Start with inventory and the per-node audit, because those are cheap and they size the rest of the project. Most fleets will find a handful of stragglers: a containerd 1.7 node pool nobody rebuilt, a template still pinning cgroupDriver, a debug handler with the wrong option. Fix those in wave one, soak, and then run the 1.38 upgrade as an ordinary minor-version bump. Keep the legacy gate documented in your runbook, but plan never to need it. If the deferral PR merges, use the extra release cycle to finish cleanly, not to postpone.

For teams with edge or industrial clusters, where nodes may be hard to reach physically, put extra weight on boot ordering and on testing a full power-cycle of an upgraded node. A kubelet that exits before registering is far more painful when the node is in a cabinet on a factory floor.

Pre-upgrade checklist:

  • [ ] Inventory containerRuntimeVersion for every node; flag containerd 1.x and CRI-O below 1.28.
  • [ ] Search metrics for cri_losing_support; every hit is a node relying on the fallback.
  • [ ] Run crictl runtime-config on each node pool and record the reported driver.
  • [ ] Make every runc-based handler agree on SystemdCgroup or cgroup_manager.
  • [ ] Remove cgroupDriver and --cgroup-driver from kubelet files, the kubeadm kubelet-config ConfigMap and all templates.
  • [ ] Add After= and Wants= ordering from kubelet to the runtime unit.
  • [ ] Upgrade runtimes on 1.37 first; soak at least one canary per pool.
  • [ ] Remove KUBECTL_*_WEBSOCKETS variables from CI and test streaming through proxies.
  • [ ] Re-check the official v1.38 changelog on release day for the final fallback behaviour.

Frequently Asked Questions

What is changing with the cgroup driver in Kubernetes 1.38?

Under the plan announced in the v1.38 sneak peek, the kubelet stops using its own cgroupDriver setting by default and relies on the container runtime to report the driver through the CRI RuntimeConfig RPC. The field is rejected unless the temporary LegacyCgroupDriverFallback gate is enabled. If the runtime cannot report a driver, the kubelet exits before registering the node. kubeadm also stops defaulting the field to systemd. An open pull request may defer the hard cutover to 1.39, so confirm against the final changelog.

Which containerd and CRI-O versions support the RuntimeConfig RPC?

According to the KEP-4033 page, the minimum versions are containerd v2.0 and CRI-O v1.28. containerd v1.7 is named as the last supported runtime line without the RPC, and its extended support ended on September 30, 2026. In practice, that means any node still on containerd 1.x needs a major-version runtime upgrade before it can run a 1.38 kubelet without the legacy gate. Verify your distribution’s packaged versions, because some vendors backport or rename builds.

How do I check which cgroup driver my container runtime reports?

Run crictl runtime-config on the node, pointing --runtime-endpoint at your runtime socket. This calls the same CRI RPC the kubelet uses, so the result is exactly what the kubelet will see. If the command returns an unimplemented error, the runtime is too old. You can also inspect the source configuration: containerd config dump and look for SystemdCgroup on each runc handler, or crio config and look for cgroup_manager. All handlers should agree.

Should I use the systemd or cgroupfs cgroup driver?

On hosts where systemd is the init system, which covers nearly every mainstream Linux distribution, use the systemd driver. The containerd documentation recommends it because of the single-writer rule: only one component should manage the cgroup tree, and on such hosts that component is systemd. The cgroupfs driver remains reasonable on minimal hosts without systemd. After 1.38 the important point is that you choose this in the runtime configuration only, not in the kubelet.

What happens if I keep cgroupDriver in my kubelet config after upgrading?

Under the announced 1.38 behaviour, the kubelet rejects the cgroupDriver field unless the LegacyCgroupDriverFallback feature gate is enabled. That means a node with a stale config may fail to start the kubelet, even if the runtime is new enough. For kubeadm clusters, remove the field from the kubelet-config ConfigMap as well as the local file, or the next kubeadm upgrade node may write it back. Removing the field is safe on 1.37 when the runtime already reports the same driver.

Can I roll back if a node fails to join after the 1.38 upgrade?

Yes, in three steps of increasing cost. First, fix the runtime configuration if it reports the wrong driver. Second, enable the temporary LegacyCgroupDriverFallback gate and restore cgroupDriver to bring the node back while you remediate. Third, revert the kubelet to 1.37, which the version-skew policy permits against a 1.38 control plane. Avoid downgrading containerd from 2.x to 1.7: that line is past end of life and uses a different configuration format.

Further Reading

By Riju — about

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *