• Kubernetes
  • containers
  • Linux
  • operations

Preparing Kubernetes nodes for the planned v1.38 cgroup change

A beginner's checklist for the cgroup-driver change planned for Kubernetes v1.38 (release planned for December 16, 2026): what the cgroup driver is, how to check runtimes and kubelet config node by node, and nearby kubectl changes.

Imagine upgrading a test cluster and finding that one group of nodes never comes back. The nodes are running, but they never show up in kubectl get nodes. The kubelet on each of them starts, fails to learn something from the container runtime, and exits.

That is the failure the Kubernetes release team warns about in its November 23, 2026 sneak peek of v1.38. As of November 29, 2026, v1.38 is not released. The post says the release “is planned for Wednesday, December 16th, 2026” and that the information “may change before the actual release date.” Kubernetes v1.38 sneak peek

This article explains the change in plain terms and gives a node-by-node check you can run before the release.

The pieces involved

  • Node: a machine (virtual or physical) in the cluster that runs your containers.
  • Kubelet: the Kubernetes agent on every node. It registers the node with the cluster and starts the containers the cluster asks for.
  • Container runtime: the program that actually runs containers, such as containerd or CRI-O. The kubelet talks to it.
  • CRI (Container Runtime Interface): the API between the kubelet and the runtime. An RPC (remote procedure call) is one call in that API.
  • cgroups (control groups): a Linux feature that groups processes and limits their CPU and memory. Kubernetes uses it to enforce resource limits.
  • cgroup driver: the way cgroups are managed on the node. The two common drivers are systemd and cgroupfs. The kubelet and the runtime must use the same one.

What changes in v1.38

Today the kubelet can be told which cgroup driver to use in its own configuration file, through a cgroupDriver field. The newer way is the CRI RuntimeConfig RPC: the kubelet asks the runtime which driver it recommends.

The sneak peek says that in v1.38:

  1. The kubelet defaults to not allowing the legacy mechanism. Nodes “essentially require that your container runtime is running before the kubelet starts.”
  2. If the kubelet cannot get the cgroup driver from the runtime, even after retrying, it exits with an error before registering the node.
  3. The cgroupDriver field is deprecated, and the kubelet will reject it unless you enable the temporary LegacyCgroupDriverFallback feature gate (a switch that turns an old or new behavior on or off).
  4. kubeadm, the tool many clusters use to set up nodes, will no longer set cgroupDriver: systemd by default, and its preflight checks will report an error if the runtime does not support the RPC.

Which runtimes are affected? The Kubernetes container runtime documentation says older runtimes, “specifically, containerd 1.y and below”, do not support the RuntimeConfig RPC, and that in a future release “older versions of containerd will fail with newer kubelets.” Container runtimes documentation The documentation does not give an equivalent version for CRI-O, so check your CRI-O release notes rather than guessing.

Step by step: audit each node pool

A node pool is a group of nodes built from the same image and configuration. Check one node per pool, then confirm the rest match. The commands below were not run against a live cluster for this article; they are standard commands, and what to look for is explained under each.

Step 1: list runtimes and versions

Run this where kubectl is configured for the cluster, usually your own machine:

kubectl get nodes -o wide

-o wide adds columns, including CONTAINER-RUNTIME. It shows the runtime and version for each node, in a form like containerd://<version>. Any node reporting containerd 1.x needs a runtime upgrade before it can run a v1.38 kubelet with default settings.

Step 2: look for an explicit cgroupDriver

Run this on the node itself, for example over SSH. The path is the default for clusters set up with kubeadm; other tools may store the kubelet configuration elsewhere.

sudo grep -n cgroupDriver /var/lib/kubelet/config.yaml

grep -n prints matching lines with line numbers. A line such as cgroupDriver: systemd means this node sets the field explicitly. On v1.38 the kubelet will reject it unless the legacy feature gate is on. No output means the field is not in this file.

Then find where the line comes from. If you delete it on the node, the next node built from the same image or script will bring it back. Search machine images, bootstrap scripts, cloud-init data and configuration management for cgroupDriver.

Step 3: check that the runtime starts before the kubelet

Also on the node:

systemctl show kubelet -p After

systemd is the service manager on most Linux distributions. After= lists units that must start before the kubelet. Look for your runtime’s service, such as containerd.service or crio.service. If it is missing, the kubelet might start before the runtime is ready. The kubelet retries, but the sneak peek says it exits if it still cannot get the driver. Adding the runtime to After= (and usually Wants= or Requires=) in a systemd drop-in is a common fix; test it on one node first.

Step 4: run kubeadm preflight checks on a staging node

If you use kubeadm, its preflight checks are planned to report an error when the runtime lacks the RPC. Run the v1.38 upgrade on a staging node pool with the exact runtime version you plan to use in production, once v1.38 is available.

Step 5: record the result

For each pool, write down: Kubernetes version, operating system, runtime and version, whether cgroupDriver is set, and where it is set. That list becomes your upgrade plan.

Common mistakes

  • Treating the feature gate as the fix. LegacyCgroupDriverFallback is described as temporary. Use it only to buy time while you upgrade the runtime.
  • Fixing one node by hand. The setting comes back with the next node from the same image. Fix the source.
  • Testing on one distribution only. A pool built on a different OS image may have a different runtime version or unit file.
  • Confusing this with cgroup v1. cgroup v1 is a separate, older version of cgroups. The sneak peek notes that since v1.35 the kubelet fails to start on cgroup v1 nodes unless failCgroupV1: false is set; that option still exists in v1.38, but support is planned for removal. It is worth checking in the same audit, but it is a different problem.

Nearby kubectl changes to check

The same post lists two kubectl changes that are cheap to check at the same time.

WebSocket opt-out variables removed. kubectl has used WebSockets instead of SPDY (an older streaming protocol) by default for kubectl exec, attach and cp since v1.30, and for port-forward since v1.31. The environment variables KUBECTL_REMOTE_COMMAND_WEBSOCKETS and KUBECTL_PORT_FORWARD_WEBSOCKETS turned that off. They are being removed in v1.38 and will have no effect. Search CI settings and shell profiles:

grep -rn "KUBECTL_REMOTE_COMMAND_WEBSOCKETS\|KUBECTL_PORT_FORWARD_WEBSOCKETS" ~/.bashrc ~/.zshrc .github/ 2>/dev/null

Adjust the paths to where your scripts live.

kuberc name field dropped. kuberc is a separate kubectl file for user preferences, such as aliases and an allowlist of credential plugins kubectl may run. In the beta kubectl.config.k8s.io/v1beta1 API, an allowlist entry can use name as an alias for command; name has been deprecated since v1.36. kuberc is expected to graduate to stable in v1.38, and the new kubectl.config.k8s.io/v1 API will not include name. Change any allowlist entries that use name to command. Kubernetes v1.38 sneak peek

Conclusion

The planned v1.38 kubelet expects the container runtime to report the cgroup driver and rejects an explicit cgroupDriver by default. Before December 16, list runtime versions with kubectl get nodes -o wide, find explicit cgroupDriver settings and their source, and make sure the runtime starts before the kubelet. Then confirm the details against the final v1.38 release notes, since the sneak peek is a plan, not a release.

Written by Duy Pham Independent developer. I build the apps on this site and write about how they work.

More about me