Kubernetes node upgrades usually fail in the least convenient place: after the control plane can accept a new node, but before the kubelet is ready to register it. Kubernetes 1.38 introduces one such startup risk. It removes the old assumption that the kubelet and container runtime can independently select their own cgroup driver.
The change is small in a manifest but large in impact. The kubelet will treat the container runtime as the source of truth and will require the runtime to answer a CRI RuntimeConfig request. A runtime that cannot answer correctly, or a node that keeps using an outdated runtime, can prevent kubelet startup.
Operators should treat this as a node compatibility upgrade, not as a Kubernetes API migration. The most useful preparation is to inventory cgroup mode, runtime support, and kubelet configuration before Kubernetes 1.38 reaches production clusters.
Why cgroup drivers matter
Cgroups limit and account for resources used by Linux processes. The kubelet and the container runtime both create and manage cgroups for Pods and containers. When they use different cgroup managers, they can hold inconsistent views of resource allocation.
There are two commonly discussed cgroup drivers:
systemdintegrates cgroup allocation with systemd units.cgroupfsinteracts directly with the cgroup filesystem.
They are not interchangeable. The kubelet and runtime should use the same driver and should be configured consistently. Mismatches can produce difficult-to-read failures under resource pressure or when Kubernetes creates and recreates Pod sandboxes.
The details matter on cgroup v2 nodes too. Kubernetes documentation recommends the systemd driver when systemd is the node init system and when using cgroup v2. It also warns that changing the driver on an existing node is sensitive: existing Pods may have been created using the semantics of the previous configuration.
What changes in Kubernetes 1.38
Today, legacy Kubernetes behavior allows the kubelet to use a cgroupDriver setting or --cgroup-driver flag even when the runtime is not reporting the setting through CRI.
In the Kubernetes 1.38 sneak peek, the project describes a breaking change:
- The kubelet asks the container runtime for cgroup-driver information through the CRI
RuntimeConfigRPC. - A compatible runtime reports
SYSTEMDorCGROUPFS. - The kubelet uses that result instead of its independent configuration.
- The kubelet performs this step before initializing its container manager.
- If the runtime cannot supply usable information, the kubelet fails initialization and can exit before the node registers.
Kubernetes 1.38 defaults to disabling the old fallback mechanism. The temporary LegacyCgroupDriverFallback feature gate can reactivate it for migration, but the fallback is a compatibility bridge, not a permanent design. The kubelet's cgroupDriver field is also deprecated and can be rejected unless the fallback is explicitly enabled.
The planned behavior also changes kubeadm. kubeadm will no longer set cgroupDriver: systemd by default. Its preflight checks are expected to report an incompatible runtime instead of silently carrying an old setting into the new cluster.
The Kubernetes 1.38 date in the sneak peek is Wednesday, December 16, 2026. Because the post is explicitly a preview, final release notes and implementation details should be checked when 1.38 is available.
Do not confuse the driver change with cgroup v1 removal
The cgroup-driver change and cgroup-v1 deprecation are related but separate.
The cgroup driver describes whether kubelet and the runtime cooperate through systemd or directly through cgroupfs. Cgroup version describes the Linux cgroup API: cgroup v1 is the older layout, while cgroup v2 is the unified model.
Kubernetes deprecated cgroup v1 in 1.35. On those nodes, kubelet startup is blocked by default unless failCgroupV1: false is set in the kubelet configuration. That option is temporary compatibility behavior. Kubernetes intends to remove cgroup v1 support in a future release.
Do not set failCgroupV1: false as a substitute for a cgroup-v2 migration. It may keep the current node starting, but it extends a platform constraint the project is planning to remove.
Inventory the nodes before the upgrade
Run inventory on the Linux nodes, not only on a developer workstation. The stat command below asks the node's kernel filesystem which cgroup layout is active:
# Unrun example: execute on each Kubernetes node
stat -fc %T /sys/fs/cgroup/
For cgroup v2, official Kubernetes documentation expects cgroup2fs. cgroup v1 may report tmpfs.
Next, inventory the actual runtime and CRI support:
# Unrun examples: verify on a representative node and canary nodes
crictl --version
crictl info
systemctl is-active containerd
systemctl is-active crio
The exact runtime may be containerd, CRI-O, or another CRI implementation. The article's commands are examples, not a claim that these commands were run. Use your distribution and runtime's supported commands, and verify that the runtime process is available before kubelet startup.
Also search node configuration for legacy values:
# Unrun example: run from a configuration-management workstation
grep -R -n "cgroupDriver\\|--cgroup-driver\\|failCgroupV1" \
/etc/kubernetes /etc/systemd/system 2>/dev/null
This search is broader than the kubelet field itself. Match each result to the deployment source that created it, such as cloud-init, kubeadm templates, Ansible roles, node images, or systemd drop-ins. A stale setting in unused documentation is less urgent than the setting used by a node bootstrap process.
For each node pool, record:
| Check | Why it matters |
|---|---|
| OS cgroup mode | Distinguishes cgroup v1 from v2 migration work |
| Container runtime version | Determines whether RuntimeConfig is supported |
| Runtime cgroup configuration | Verifies the driver chosen by containerd or CRI-O |
| Kubelet cgroup configuration | Finds legacy fields and flags that 1.38 may reject |
| kubeadm and node-image versions | Prevents a bootstrap image from recreating obsolete settings |
| Monitoring agents | Finds tools that directly read cgroup v1 paths |
Verify alignment, then upgrade by node pool
The central design is that runtime discovery removes a split-brain configuration. Operators should therefore verify both sides even though the final source of truth is the runtime.
A safe sequence is:
- Upgrade the runtime in a staging node pool.
- Confirm that it implements the CRI
RuntimeConfigresponse. - Confirm containerd or CRI-O uses the intended
systemdorcgroupfssetting. - Remove or reduce legacy kubelet cgroup settings from new node images.
- Add a 1.38-compatible kubelet to one canary node.
- Verify the node registers, Pods start, and resource metrics remain stable.
- Repeat per node pool, keeping a tested fallback node available.
The LegacyCgroupDriverFallback gate should be treated as a measured exception for an old runtime or an incomplete migration. The gate does not make runtime discovery work. It restores access to the old kubelet setting while you update or replace the runtime. Once the runtime supports discovery, remove the gate and the legacy setting.
Prefer replacement when a driver must change
If the runtime currently advertises a different driver than the intended value, changing configuration on a live node can be risky. Kubernetes documentation explicitly cautions about changing cgroup drivers after Pods have joined the cluster. The safest path is often a fresh node:
- Build a new node image from a cgroup-v2 baseline.
- Configure the runtime and kubelet consistently.
- Cordon and drain the old node.
- Validate the replacement node.
- Delete or recycle the old node only after workloads are healthy.
Do not use a live restart as the validation for a new cgroup layout. A kubelet restart can expose stale assumptions, but it does not prove that every workload, monitoring agent, and local script understands the new cgroup tree.
Migration outcomes to expect
Runtime already supports discovery. Remove legacy kubelet settings from new node images where practical, test a 1.38 canary, and keep a rollback image for the first rollout.
Runtime is too old. Upgrade containerd or CRI-O, or replace the node with a supported runtime. KEP-4033 records containerd v2.0 and CRI-O v1.28 as required examples after fallback removal.
Node still uses cgroup v1. Inventory applications and monitoring for direct cgroup filesystem access. Upgrade the OS to cgroup v2, reboot if required, then validate runtimes and workloads before removing failCgroupV1: false compatibility.
One runtime setting is mismatched. Correct the runtime configuration and node image before upgrading kubelet. A different but matched configuration is safer than two live components that disagree.
Operational checklist
- Identify every node pool and runtime type.
- Record cgroup v1/v2 mode for every node.
- Verify that the runtime supports the CRI
RuntimeConfigRPC. - Compare runtime and kubelet cgroup-driver settings.
- Remove legacy settings from the next node image.
- Test on a canary pool before broad rollout.
- Use
LegacyCgroupDriverFallbackonly as a documented, temporary bridge. - Replace nodes instead of live-changing driver semantics where existing Pods could be affected.
- Check monitoring, logging, security agents, and direct cgroup consumers.
- Treat cgroup-v1 blocking and cgroup-driver discovery as separate work streams.
- Confirm Kubernetes 1.38 release notes before production use.
The Kubernetes 1.38 change is not merely a configuration deprecation. It makes runtime availability part of kubelet startup and removes a split configuration path that could hide node failures. A careful inventory and canary rollout turn that risk into routine versioning work.