DevOps

Kubernetes 1.38: What Breaks and What to Check Before Upgrading

Kubernetes 1.38 lands December 16: the runtime now dictates the cgroup driver, swap rules change, GPUs get partitioned. Your pre-upgrade checklist.

Kubernetes 1.38: What Breaks and What to Check Before Upgrading

Kubernetes 1.38: What Breaks and What to Check Before Upgrading

Kubernetes 1.38 ships on December 16, 2026, and most of its release notes will be the usual mix of graduations and cleanups. One change is different. If a node's container runtime cannot tell the kubelet which cgroup driver to use, that node will not join the cluster at all: the kubelet exits with an error before it registers.

That warning comes from the release team's sneak peek, published on November 23. The same post also lists some genuinely useful features for teams running AI workloads: pod-level resources and partitionable GPUs through DRA are both expected to reach stable, and a new alpha API changes how Pods get evicted. Here is what to check, in order, before you put the upgrade on the calendar.

The context

Before each release, the Kubernetes release team publishes a preview of planned deprecations, removals and likely features. The one for 1.38 is on the official Kubernetes blog. It is careful to say that content may still change before release day, but breaking changes announced this late are rarely pulled.

Two concepts come up throughout:

  • cgroups: the Linux kernel feature that limits and accounts for CPU, memory and I/O for a group of processes. The kubelet and the container runtime (containerd, CRI-O) must agree on the same cgroup "driver", usually systemd or cgroupfs. When they disagree, nodes become unstable in ways that are painful to debug.
  • CRI (Container Runtime Interface): the API the kubelet uses to talk to the runtime. It includes a RuntimeConfig call that lets the runtime report the cgroup driver it recommends.

Until now, you told the kubelet which driver to use. In 1.38, the kubelet asks.

Kubernetes 1.38 and the cgroup driver: the breaking change

In 1.37 and earlier, the kubelet supported a legacy mechanism: the cgroupDriver field in its configuration file. In Kubernetes 1.38, that mechanism is off by default. The kubelet calls RuntimeConfig over CRI and uses whatever the runtime reports. If it gets nothing back, even after retrying, it exits with an error before registering the node.

The KEP-4033 design behind this has three practical consequences:

  1. The runtime has to be up before the kubelet starts. Service ordering on the node now matters. A systemd unit without the right dependency, or a node image that starts both services in parallel, can fail at boot.
  2. The cgroupDriver field gets rejected. Not just deprecated: the kubelet refuses a configuration that sets it, unless you turn the legacy path back on with the temporary LegacyCgroupDriverFallback feature gate.
  3. kubeadm stops defaulting to systemd. It no longer sets cgroupDriver: systemd, and its preflight checks report an error if the runtime does not support the RPC.

The fix is easy to describe and tedious to do. Inventory the runtime versions across every node pool, confirm in each runtime's documentation that it implements RuntimeConfig, then strip cgroupDriver out of your kubelet configs and every template that generates them: Ansible roles, Terraform modules, node images, cloud-init user data. For runtimes that are too old, the release team points to the official 1.38 release notes for upgrade instructions.

LegacyCgroupDriverFallback is there as an escape hatch, and it is explicitly temporary. Leaning on it just moves the problem to the next upgrade.

The same post also reminds readers that cgroup v1 is on its way out. Since 1.35, the kubelet refuses to start on cgroup v1 nodes unless you set failCgroupV1: false. That option still works in 1.38, but removal is planned for a future release. Any nodes still running an older distribution should be on a cgroup v2 migration plan now.

Pod-level resources go stable, with a swap gotcha

Pod-level resources let you set CPU, memory and hugepages requests and limits for the whole Pod instead of per container. For an inference Pod that bundles a model server, a metrics sidecar and a proxy, that is a much better fit: you size the envelope and let the containers share it. The feature is expected to graduate to stable in Kubernetes 1.38.

The LimitedSwap behavior change

The catch affects Linux nodes on cgroup v2 configured with the LimitedSwap swap mode. In 1.38, the kubelet derives swap limits from the Pod's pod-level memory settings, not from each container's.

The result: a Pod whose pod-level memory request equals its limit gets no swap at all, for the Pod or any of its containers, even when one container sets a request below its limit. If you turned on swap to soak up memory spikes, say while loading model weights or during a one-off preprocessing step, find those workloads before you upgrade. A spike that quietly went to swap yesterday becomes an OOM kill tomorrow.

GPUs and evictions in Kubernetes 1.38

Two more changes land squarely on AI infrastructure.

Partitionable devices in DRA

Dynamic Resource Allocation (DRA) is gradually taking over from device plugins for allocating specialised hardware. Partitionable devices let a DRA driver advertise one GPU both as a whole device and as several smaller partitions, and the scheduler only allocates combinations that fit within the physical device.

According to KEP-4815, the feature is expected to go stable in 1.38, with the DRAPartitionableDevices feature gate locked on. If your platform mixes large training jobs with small inference services, this is a standard, vendor-neutral way to share expensive GPUs, provided your hardware's DRA driver supports it.

EvictionRequest: let the Pod get ready

Evicting a Pod is not always the same as killing it. A job halfway through a data migration, a worker finishing a batch, or a service draining a queue all handle abrupt termination badly during a node drain.

The new alpha EvictionRequest API, described in KEP-4563, adds coordinated eviction. A controller creates an EvictionRequest to signal that a Pod needs to go. The eviction request controller then works with "responders" configured for that Pod, which can finish in-flight work, clean up, or migrate data first. If no responder exists or none completes, Kubernetes falls back to the existing API-initiated eviction, which still respects PodDisruptionBudgets.

It does not replace PDBs; it gives applications a say in the process. Being alpha, it needs the EvictionRequestAPI feature gate and the matching alpha API group. Try it in staging, not in production.

Smaller cleanups in kubectl and webhooks

Three easy-to-miss items:

  • KUBECTL_REMOTE_COMMAND_WEBSOCKETS and KUBECTL_PORT_FORWARD_WEBSOCKETS, which let you opt out of WebSockets in favour of SPDY, are removed. They will have no effect, so delete them from scripts and CI.
  • kuberc, kubectl's preferences file kept separate from kubeconfig, is expected to go stable with a kubectl.config.k8s.io/v1 API that drops the name field from credential plugin allowlist entries. Switch to command now.
  • Since 1.37, admission webhooks no longer receive virtual requests such as TokenReview or SubjectAccessReview. You can still turn the feature gate off, but it will be locked on when it graduates.

What it means for AI teams

If you run models in production on Kubernetes, 1.38 is not a Friday-evening upgrade. This is the checklist we would work through first.

1. Start with the GPU node pools. They tend to be the least uniform: custom node images, proprietary drivers, runtimes pinned for compatibility. They are also the most expensive nodes to have stuck in NotReady. Check runtime versions and RuntimeConfig support there before anywhere else.

2. Search for cgroupDriver everywhere. A grep -r cgroupDriver across your infrastructure repositories will surface every place it is still set: kubelet configs, kubeadm files, Ansible roles, bootstrap scripts. Each one will stop a 1.38 kubelet from starting.

3. Test a cold boot. Bring up a 1.38 test node, power-cycle it, and confirm it rejoins the cluster. That is the test that catches missing systemd ordering between runtime and kubelet.

4. Audit Pods that rely on swap. If you adopted pod-level resources on LimitedSwap nodes, list the Pods whose pod-level memory request equals the limit. Their behavior changes without a single manifest edit.

5. Plan to use what is new. Stable pod-level resources and partitionable DRA devices are real levers for filling under-used GPUs. EvictionRequest, even in alpha, is worth a trial on long-running jobs that hate node drains. Both feed into the broader work of keeping an inference platform reliable and its costs under control.

The common thread is that 1.38 moves responsibilities around. The cgroup driver moves from the kubelet to the runtime, the memory budget moves from the container to the Pod, and eviction moves from a signal to a negotiation. Each move breaks an assumption hiding somewhere in your tooling.

TL;DR

  • Breaking change: the kubelet gets the cgroup driver from the runtime over CRI and exits if it cannot; cgroupDriver is rejected unless a temporary feature gate is enabled.
  • Swap: on LimitedSwap nodes, a Pod whose pod-level memory request equals its limit gets no swap.
  • Expected stable: pod-level resources, kuberc, and partitionable DRA devices for slicing GPUs.
  • New alpha: EvictionRequest, for coordinated evictions that still honour PDBs.
  • Timing: release planned for December 16, 2026, which leaves three weeks to validate Kubernetes 1.38 in staging.

Industrialising AI agents? SeedVision offers 3-5 day AI audits and 15-30 day production rollouts. See the packages or book a 30-min call.

Cover photo: Photo by Yuriy Vertikov on Unsplash.