Cloud Native

Kubernetes 1.38 Makes Runtime Readiness a Node-Startup Requirement

Kubernetes 1.38 is scheduled for December 16, and one of its most consequential planned changes sits below the API features that usually attract attention. The kubelet is expected to stop accepting its own cgroup driver setting as the normal source of truth. Instead, it will ask the container runtime which driver to use through the Container Runtime Interface (CRI) before the node can register.

That is a sound architectural cleanup: the runtime becomes the authority for a setting that the runtime and kubelet must share. It also changes an old compatibility problem into a startup requirement. Nodes with an older runtime, a disabled CRI service, or fragile startup ordering can fail before joining the cluster. For platform teams, the practical message is simple: validate runtime readiness before treating Kubernetes 1.38 as an ordinary control-plane and kubelet upgrade.

What Kubernetes 1.38 plans to change

The Kubernetes release team’s v1.38 sneak peek says the kubelet will default to disallowing the legacy cgroup driver configuration mechanism. The cgroupDriver field in the kubelet configuration is slated for deprecation, and kubeadm will no longer set it to systemd by default. A temporary LegacyCgroupDriverFallback feature gate is planned for operators who need to reactivate the old path during a transition.

Under the new path, kubelet startup establishes a connection to the CRI endpoint and calls the runtime’s RuntimeConfig RPC. The reply identifies the cgroup driver—typically systemd or cgroupfs—that the runtime uses. The kubelet then builds its view of the node’s cgroup hierarchy from that answer. If it cannot obtain the information after retrying, it exits rather than registering a node with an uncertain or contradictory configuration.

This is more than a renamed option. The dependency direction changes. Previously, administrators configured the same choice in two places and were responsible for keeping them aligned. With v1.38’s planned behavior, the runtime supplies the answer and the kubelet consumes it. The upgrade prerequisite is therefore not merely “the configuration values match”; it is “the runtime implements the RPC and is available when the kubelet initializes.”

The release is still in development, so operators should verify final behavior against the published v1.38 release notes. But the project has been preparing for this change for several releases, and the migration target is already clear.

Why the old model had to go

Linux control groups enforce the CPU and memory boundaries associated with Kubernetes workloads. The kubelet manages pod-level cgroups, while the container runtime manages cgroups for individual containers. Both components must use a compatible view of the hierarchy. A kubelet using cgroupfs alongside a runtime using systemd, for example, can produce failed container creation, inconsistent resource accounting, or instability under pressure.

Historically, Kubernetes exposed the same decision on both sides. That made configuration flexible, but it created a split-brain hazard: two independent settings described one node-level fact. Automation could update one component without the other, distribution defaults could differ, and a seemingly harmless rebuild could surface the mismatch only when workloads began to start.

KEP-4033 introduced a cleaner contract. The CRI gained RuntimeConfig, allowing the runtime to declare its cgroup driver. Kubernetes first added the capability behind the KubeletCgroupDriverFromCRI feature gate, then enabled the behavior while retaining a fallback for runtimes that lacked the call. The Kubernetes 1.31 project post identified containerd 2.0 and CRI-O 1.28 as the versions where the two major runtimes had the needed support.

The fallback made adoption safe, but it also allowed old runtime installations to remain invisible. Kubernetes 1.38 is the point where that compatibility cushion is expected to disappear by default. This removes an entire class of configuration drift, but only after operators remove the legacy dependency from their fleets.

Which clusters face the most risk

Managed Kubernetes customers may see much of this work handled by their provider’s node images. Even there, custom images, bring-your-own-node programs, and bootstrap modifications deserve scrutiny. The most exposed environments are self-managed clusters and platforms that maintain long-lived node images independently of the Kubernetes control plane.

Four patterns should trigger an immediate review:

  • containerd 1.x remains in node images. The Kubernetes documentation explicitly notes that containerd 1.x does not support the required RuntimeConfig RPC. A kubelet configuration that works today because of fallback behavior is not evidence that it will work with v1.38.
  • The CRI plugin is disabled or conditionally configured. Some packaged containerd configurations disable the CRI plugin by default. A running containerd daemon is not enough if the kubelet cannot reach a valid CRI service.
  • Runtime and kubelet startup are loosely ordered. A node bootstrap process that starts both services in parallel may have relied on kubelet retries or legacy configuration. Since v1.38 needs the runtime’s answer during kubelet initialization, service dependencies and readiness behavior matter.
  • In-place runtime reconfiguration is common. The runtime’s cgroup driver is intended to remain static for the kubelet lifecycle. Changing it underneath existing pods risks a hierarchy mismatch; replacing or fully recycling the node is safer than patching a live worker.

The change also intersects with the longer migration from cgroup v1 to cgroup v2, but the two are distinct. Kubernetes has separately been phasing out cgroup v1 support, and v1.38 is expected to retain a temporary opt-out. Upgrading the CRI implementation does not by itself complete a cgroup v2 migration. Teams should track the runtime RPC requirement and the host cgroup version as separate checks in the same node-image qualification process.

A pre-upgrade test that matches the real failure mode

A version inventory is the starting point, not the finish line. The meaningful test is whether a clean node can boot, expose the CRI information, start the kubelet, and register without relying on the legacy field. That sequence should run in the same environment that produces production nodes.

Platform teams can turn the change into a bounded qualification exercise:

  • Inventory runtime versions and endpoints. Record the runtime implementation, package source, version, CRI socket, and cgroup driver for every node pool. Flag containerd 1.x and any custom or shimmed runtime for explicit testing.
  • Query the runtime directly. Use crictl info or the runtime’s supported diagnostics to confirm that the CRI endpoint responds and reports the expected configuration. Do this on running nodes and during image CI.
  • Search for the compatibility signal. KEP-4033 describes a cri_losing_support metric with a version label for nodes using a runtime that will lose support. Where present, alert on a value associated with v1.38; also review kubelet logs for fallback or deprecated cgroup-driver messages.
  • Remove the legacy assumption in a canary. Build a v1.38-compatible canary image with the supported runtime and without depending on kubelet’s cgroupDriver setting. Verify that a newly created node joins, becomes Ready, runs workload pods, survives reboot, and is replaceable through normal automation.
  • Test failure deliberately. Stop or delay the runtime, point the kubelet at an invalid socket, and test an unsupported runtime in an isolated environment. Operations teams should recognize the resulting service logs and node-registration symptoms before an upgrade window.

Testing a new node matters more than only upgrading an existing one. The planned failure happens during initialization, so a healthy fleet can conceal a broken golden image until autoscaling, repair, or a regional event creates replacement nodes. A control-plane upgrade that appears successful can therefore coexist with a worker-pool recovery path that is no longer viable.

Treat the fallback as a bridge, not the destination

The proposed LegacyCgroupDriverFallback gate gives operators a recovery option, but enabling it across the fleet would preserve the exact dual-configuration problem that the change is designed to eliminate. It is best used narrowly: restore a blocked canary, collect evidence, upgrade the runtime or fix ordering, and then remove the exception.

Rollback planning also needs to consider runtime compatibility in both directions. A new runtime that supports RuntimeConfig should generally work with supported older kubelets, but teams should test their precise packages, configuration formats, and automation. containerd 2.x, for example, changes configuration namespaces compared with 1.x. A runtime upgrade deserves its own node-image validation rather than being bundled blindly into the Kubernetes change.

For production rollout, immutable replacement is the safer unit of change. Create a new node pool or machine template, drain workloads according to disruption budgets, and replace capacity gradually. This avoids switching the cgroup manager beneath existing pod sandboxes and provides a clean rollback target if registration or workload behavior differs.

The broader significance: fewer ambiguous node states

Kubernetes 1.38’s cgroup-driver change is strict, but the strictness is useful. A node that cannot establish a coherent resource-management contract should fail before it accepts workloads. Moving the decision to the runtime also makes configuration ownership legible: the component that implements container cgroups declares the driver, and the kubelet follows it.

The operational cost is concentrated at the upgrade boundary. Teams must modernize old runtimes, verify CRI availability, and make boot ordering deterministic. Once that work is complete, there is one fewer duplicated setting to drift across images, provisioning systems, and distributions.

That is why Kubernetes 1.38 should be approached as a node-image compatibility release, not just a Kubernetes version bump. The best readiness evidence is a freshly provisioned worker that registers without fallback, schedules real workloads, and can be recreated on demand. If that test passes, the new contract is doing what it was designed to do: replacing a fragile configuration agreement with a single, enforceable source of truth.

Sources