Jorge Turbica / blog · Blog ← All articles ES · Leer en español
Technologies

Kubernetes 1.38 will require containerd 2.0 or CRI-O 1.28, or the kubelet won't start

Due December 16, 2026, Kubernetes 1.38 lets the runtime set the cgroup driver, changes per-Pod swap and drops some kubectl options.

A node running containerd 1.7 that upgrades to Kubernetes 1.38 won't register: the kubelet will ask the runtime which cgroup driver to use and, if it gets no answer, exit with an error. That's the riskiest item in the preview the release team published on November 23, 2026, three weeks ahead of a release planned for December 16.

The team notes the list may still change before then. Even so, none of this is a surprise: these changes were announced several releases ago and are now becoming mandatory.

The runtime picks the cgroup driver

Up to 1.37, you could set the cgroup driver (systemd or cgroupfs) in the kubelet configuration with cgroupDriver. The modern path is for the runtime to report it through the CRI RuntimeConfig call, and in 1.38 that is the only one enabled by default:

  • The kubelet needs the runtime up before it starts. If it can't get the driver after retrying, it exits with an error before registering the node.
  • The cgroupDriver field is deprecated and the kubelet rejects it unless you enable the temporary LegacyCgroupDriverFallback feature gate.
  • kubeadm stops setting cgroupDriver: systemd by default, and its preflight checks fail if the runtime doesn't support the call.

According to the enhancement proposal (KEP-4033), the minimums are containerd 2.0 or CRI-O 1.28; containerd 1.7 is the last supported runtime that lacks the call. If your kubelets run 1.34 through 1.36, you already have a warning: the cri_losing_support metric with the version="1.38" label flags the nodes that will be left behind.

The compatibility gate buys time; it isn't a plan, since it's temporary by design. The sensible move is to upgrade the runtime in its own maintenance window, before touching the Kubernetes version, so you don't mix two possible causes of failure in one rollout.

Pod-level resources and swap

Pod-level resources, which let you set CPU, memory and hugepages for the Pod as a whole, graduate to stable in 1.38. They bring a behavior change on Linux nodes with cgroup v2 and swap set to LimitedSwap: the kubelet will derive the swap limit from the Pod's memory. A Pod whose pod-level memory request equals its limit gets no swap at all, for the Pod and every container in it, even if a container's memory request is lower than its limit. If any service relies on swap to absorb spikes, check it first.

What's leaving kubectl

  • The KUBECTL_REMOTE_COMMAND_WEBSOCKETS and KUBECTL_PORT_FORWARD_WEBSOCKETS variables are removed. kubectl has defaulted to WebSockets for exec, attach and cp since 1.30 and for port-forward since 1.31, and will still fall back to SPDY when needed. If your scripts or CI set them, they'll simply stop doing anything.
  • kuberc, the kubectl preferences file kept separate from the kubeconfig, graduates to stable with the kubectl.config.k8s.io/v1 API, which no longer accepts name as an alias for command in the credential plugin allowlist:
yaml
apiVersion: kubectl.config.k8s.io/v1beta1
kind: Preference
credentialPluginPolicy: Allowlist
credentialPluginAllowlist:
  - command: cloudco-login   # was: name: cloudco-login

Changes still in progress

  • cgroup v1: since 1.35, the kubelet won't start on cgroup v1 nodes unless you set failCgroupV1: false. The option remains in 1.38, but support will be removed in a future release.
  • Admission webhooks: since 1.37 they no longer receive virtual writes to TokenReview, SubjectAccessReview and the other authentication and authorization reviews. If one of your webhooks relied on seeing them, you can turn off the ExcludeAdmissionWebhookVirtualResources gate for now, but it will be locked on once the feature goes stable.

What's coming

Besides kuberc and pod-level resources, the preview lists two likely additions: DRA partitionable devices going stable, which let a driver advertise a GPU whole or in partitions while the scheduler only allocates combinations that fit the physical device, and the alpha EvictionRequest API. The latter gives applications a chance to finish work, clean up or migrate data before an eviction, during a drain for instance, without replacing PodDisruptionBudgets, which still apply if nothing responds.

Checking your clusters before upgrading

bash
# Runtime version per node: you need containerd 2.0+ or CRI-O 1.28+
kubectl get nodes -o custom-columns=NODE:.metadata.name,RUNTIME:.status.nodeInfo.containerRuntimeVersion

# On each node: cgroup2fs means cgroup v2
stat -fc %T /sys/fs/cgroup/

# kubeadm nodes: is the kubelet pinning the driver?
grep -n cgroupDriver /var/lib/kubelet/config.yaml

# Scripts and CI: variables that will stop having any effect
env | grep -E 'KUBECTL_(REMOTE_COMMAND|PORT_FORWARD)_WEBSOCKETS'

Checklist before taking 1.38 to production:

  1. Upgrade containerd or CRI-O on every node, including image templates and node pools created on demand.
  2. Remove cgroupDriver from the kubelet configuration and confirm in staging that nodes register without it.
  3. Migrate any nodes still on cgroup v1 instead of leaning on failCgroupV1: false.
  4. Find Pods using pod-level resources on LimitedSwap nodes and check their swap usage.
  5. Replace name with command in the credential plugin allowlist of your kuberc files.
  6. Read the release notes on December 16: this preview can still change.

Sources

Jorge Turbica

Software Engineer and SRE. I write about the real challenges I run into in production.

See portfolio ↗