Kubernetes 1.38 is planned for December 16, 2026. Most of its changes are additions, but one can
stop a node from joining the cluster at all: in 1.38 the kubelet takes the cgroup driver only from
the container runtime. On a node with an old runtime, the kubelet exits before the node registers,
and a cgroupDriver line in the kubelet configuration is rejected.
That line is often there even if nobody on the team ever typed it. On a fresh kubeadm cluster
running 1.37, I found cgroupDriver: systemd in two places, and kubeadm had written both.
This post explains the 1.38 changes that can break an upgrade, then walks through six checks you can run today on a 1.37 cluster. Each check has one command, the output that means you are safe, and the output that means you should stop and fix something first. By the end you will have a list of the nodes, scripts, and workloads to fix before you upgrade.
Code for this post: _resource/kubernetes-138-preflight. I ran every check on a throwaway Kind cluster (kind v0.33.0,
kindest/node:v1.37.0, containerd 2.3.4, cgroup v2) on 2026-11-29. There is no 1.38 release or Kind image yet, so the 1.38 behavior comes from the Kubernetes v1.38 sneak peek and KEP-4033, not from a test. The sneak peek also notes that plans can change before the release.
What Changes in 1.38
The sneak peek lists four changes that matter for an upgrade.
| Change | Who is affected | What breaks |
|---|---|---|
| The runtime must report the cgroup driver | Every node | The kubelet exits before the node registers; a cgroupDriver setting is rejected |
KUBECTL_*_WEBSOCKETS variables removed |
Scripts and CI that set them | Nothing fails; the opt-out silently stops working |
name dropped from kuberc allowlist entries |
Anyone with a kuberc allowlist | The entry isn’t valid in the stable v1 API |
Swap follows pod-level memory on LimitedSwap nodes |
Pods with pod-level resources | Some Pods lose swap |
The last three are covered in their own checks below. The first one needs more background.
The cgroup driver now comes from the runtime
Linux cgroups are the kernel feature that enforces each Pod’s CPU and memory limits. Two
components manage them on a node: the kubelet, which creates a cgroup for each Pod, and the
container runtime (containerd or CRI-O), which creates them for each container. The cgroup
driver decides how they are managed, either through systemd (systemd) or by writing to the
cgroup filesystem directly (cgroupfs). The kubelet and the runtime must use the same driver.
Until now there were two ways for the kubelet to learn the driver:
- The
cgroupDriverfield in the kubelet configuration file. - Asking the runtime over the CRI (Container Runtime Interface, the API between the kubelet and
the runtime) with the
RuntimeConfigcall.
A 1.37 kubelet already prefers the runtime’s answer and uses the file setting only as a fallback. In 1.38, the fallback is off by default:
- If the runtime can’t report the driver, the kubelet retries and then exits with an error before it registers the node.
- If the kubelet configuration still contains
cgroupDriver, the kubelet rejects it, unless you turn on the temporaryLegacyCgroupDriverFallbackfeature gate. - kubeadm stops writing
cgroupDriver: systemdby default, and its preflight checks report an error if the runtime doesn’t support the call.
KEP-4033 names the minimum runtimes that support the call: containerd 2.0 and CRI-O 1.28. So a node fails in 1.38 for one of two reasons: its runtime is too old to answer, or its kubelet configuration still sets the driver. Checks 1 and 3 look for each.
The Six Checks
Checks 1 to 3 are about nodes. Check 1 covers every node from kubectl. Run checks 2 and 3 on one
node from every node pool, because node pools are often built from different images. Checks 4 and 5
are about your scripts and laptops. Check 6 is about workloads.
On managed services such as EKS, GKE, and AKS, the provider builds the node image and the kubelet configuration, so checks 1 to 3 are mostly the provider’s job. Check your node image or AMI version anyway. Checks 4 to 6 are yours on every platform.
To follow along on a test cluster, clone the repository and create the cluster from the post’s directory:
cd _resource/kubernetes-138-preflight
kind create cluster --name k138 --config kind-config.yaml
./enable-limitedswap.sh k138-worker
kubectl apply -f batch-worker.yaml
enable-limitedswap.sh switches the worker’s kubelet to LimitedSwap, and batch-worker.yaml
creates a Pod that check 6 should find. Both exist only to give the checks something to report.
The repository also has two scripts that run the checks for you: cluster-checks.sh runs checks 1,
3, and 6 from any machine with kubectl access, and node-checks.sh runs checks 2 and 3 on a node.
The sections below run each command by hand so you can see what it reports.
Check 1: Is the runtime new enough?
Each node reports its runtime and kubelet versions in its status, so one command covers the whole cluster:
kubectl get nodes -o custom-columns=NODE:.metadata.name,RUNTIME:.status.nodeInfo.containerRuntimeVersion,KUBELET:.status.nodeInfo.kubeletVersion
NODE RUNTIME KUBELET
k138-control-plane containerd://2.3.4 v1.37.0
k138-worker containerd://2.3.4 v1.37.0
kubectl get nodes -o wide shows the same CONTAINER-RUNTIME column, with more noise.
- Safe:
containerd://2.xor newer, or CRI-O 1.28 or newer. - Stop:
containerd://1.7.xor anything older. Upgrade the runtime on those nodes, or replace the node pool, before you upgrade the kubelet.
Check 2: Is the node on cgroup v2?
This check and the next one read the node itself, so run them as root on the node. On the Kind
cluster, each node is a container, and docker exec -it k138-worker bash opens a shell on the
worker. The command prints the filesystem type mounted at /sys/fs/cgroup:
stat -fc %T /sys/fs/cgroup/
cgroup2fs
- Safe:
cgroup2fs. - Stop:
tmpfs, which means cgroup v1 (Kubernetes docs).
This isn’t new in 1.38. Since 1.35 the kubelet fails to start on cgroup v1 unless
failCgroupV1: false is set, and 1.38 keeps that option. The sneak peek calls it a short-term fix,
because cgroup v1 support is planned for removal. If a node pool still needs it, plan the move to
cgroup v2 now, separately from this upgrade.
Check 3: Is cgroupDriver still in the kubelet configuration?
kubeadm and most node images keep the kubelet configuration in /var/lib/kubelet/config.yaml. If
your nodes start the kubelet with a different --config path, search that file instead:
grep -n cgroupDriver /var/lib/kubelet/config.yaml
15:cgroupDriver: systemd
- Safe: no output.
- Stop: a
cgroupDriverline. The 1.38 kubelet rejects it.
My test cluster failed this check on both nodes, and nobody had written that line by hand. kubeadm wrote it when it created the cluster. Because containerd 2.3.4 reports the driver, the 1.37 kubelet already ignores the line, and its log says so:
journalctl -u kubelet | grep "cgroup driver"
"Using cgroup driver setting received from the CRI runtime" cgroupDriver="systemd"
I deleted the line and restarted the kubelet. The node stayed Ready, and the kubelet logged the
same message. On a 1.37 node that passes check 1, removing the line changes nothing, so you can
clean it up before the upgrade.
Warning: Fix check 1 first. On a node whose runtime can’t report the driver, the 1.37 kubelet still uses the file setting. Remove the line there and the kubelet falls back to its built-in default,
cgroupfs, which won’t match a runtime configured forsystemd.
On kubeadm clusters, deleting the line from the file isn’t enough. The trap section below shows why.
Check 4: Do scripts still set the WebSocket opt-outs?
kubectl has used WebSockets instead of SPDY for exec, attach, and cp since 1.30, and for
port-forward since 1.31. Two environment variables turned that off, and 1.38 removes them. Search
your repositories, CI configuration, and shell profiles:
grep -rnE 'KUBECTL_(REMOTE_COMMAND|PORT_FORWARD)_WEBSOCKETS' .
scripts/db-tunnel.sh:2:export KUBECTL_PORT_FORWARD_WEBSOCKETS=false
- Safe: no output.
- Stop: any match. Delete the line, then test the command it was protecting.
Nothing fails when you upgrade with these variables still set; they just stop having an effect.
The risk is the reason someone set them. Teams usually add KUBECTL_PORT_FORWARD_WEBSOCKETS=false
because a proxy or load balancer in front of the API server broke WebSocket connections. According
to the sneak peek, 1.38 kubectl still falls back to SPDY when WebSockets fail.
Don’t rely on that fallback without testing it. Deleting the variable on 1.37 already switches
kubectl back to WebSockets, so the 1.38 behavior is available to test today. After you delete the
line, run kubectl port-forward and kubectl exec through that proxy. If they break, you found
the problem before the upgrade, not from a broken database tunnel afterwards.
Check 5: Does your kuberc allowlist still use name?
kuberc is kubectl’s preferences file (~/.kube/kuberc), separate from the kubeconfig that holds
credentials. It can include an allowlist of the credential plugins kubectl may run. In the beta
v1beta1 API, an entry can use name as an alias for command. name has been deprecated since
1.36, and the stable v1 API expected in 1.38 drops it. This yq query prints every allowlist
entry that still has a name field:
yq '.credentialPluginAllowlist[] | select(has("name"))' ~/.kube/kuberc
name: aws
- Safe: no output, or no kuberc file at all.
- Stop: any entry. Change
name:tocommand:.
Read the raw file, not kubectl kuberc view. With kubectl 1.37, the view already shows the entry
as command, so it hides the problem:
credentialPluginAllowlist:
- command: aws
- command: gke-gcloud-auth-plugin
kuberc lives on each engineer’s machine and on CI runners, not in the cluster, so this check has to run wherever kubectl runs.
Check 6: Do LimitedSwap nodes run Pods with pod-level resources?
Pod-level resources let you set a memory request and limit for the whole Pod, not only for each
container. They are expected to reach stable in 1.38. On Linux nodes with cgroup v2 and the
LimitedSwap swap mode, the 1.38 kubelet will compute swap from the Pod-level memory settings.
A Pod whose Pod-level memory request equals its limit then gets no swap, for the Pod or any
container in it, even if a container asks for less memory than its limit.
First, find which nodes use LimitedSwap. The kubelet’s configz endpoint returns its running
configuration:
for n in $(kubectl get nodes -o name | cut -d/ -f2); do
printf '%s ' "$n"
kubectl get --raw "/api/v1/nodes/$n/proxy/configz" | jq -c .kubeletconfig.memorySwap
done
k138-control-plane {}
k138-worker {"swapBehavior":"LimitedSwap"}
- Safe:
{}on every node (the default,NoSwap). - Look closer:
{"swapBehavior":"LimitedSwap"}. Then find Pods with a Pod-level memory limit. The query lists them on every node, so compare eachnode=value with theLimitedSwapnodes above:
kubectl get pods -A -o json | jq -r '.items[]
| select(.spec.resources.limits.memory)
| "\(.metadata.namespace)/\(.metadata.name) node=\(.spec.nodeName) request=\(.spec.resources.requests.memory) limit=\(.spec.resources.limits.memory)"'
default/batch-worker node=k138-worker request=256Mi limit=256Mi
- Stop: a Pod on a
LimitedSwapnode where the request equals the limit, as here. If that workload relies on swap, read the 1.38 release notes for the recommended change before you upgrade, or plan for it to run without swap.
LimitedSwap already gives no swap to Pods in the Guaranteed QoS class, so the change matters for
Burstable Pods like batch-worker, which sets a memory limit but no CPU.
I couldn’t test the 1.38 swap behavior itself; it comes from the sneak peek. On 1.37 the check only tells you which Pods are exposed, not how much swap they will get after the upgrade.
The Trap: kubeadm Keeps a Second Copy
After check 3, the obvious fix is to delete cgroupDriver from /var/lib/kubelet/config.yaml on
every node. On a kubeadm cluster that fix doesn’t last.
kubeadm stores the cluster-wide kubelet configuration in a ConfigMap, kube-system/kubelet-config,
and writes each node’s file from it during kubeadm join and kubeadm upgrade node. On my test
cluster the ConfigMap had the line too:
kubectl -n kube-system get cm kubelet-config -o yaml | grep cgroupDriver
cgroupDriver: systemd
To see what happens during an upgrade, I removed the line from the worker’s file, confirmed it was
gone, and ran the phase of kubeadm upgrade node that writes the kubelet configuration:
grep -c cgroupDriver /var/lib/kubelet/config.yaml
kubeadm upgrade node phase kubelet-config
grep -n cgroupDriver /var/lib/kubelet/config.yaml
0
[kubelet-start] Writing kubelet configuration to file "/var/lib/kubelet/config.yaml"
[upgrade/kubelet-config] The kubelet configuration for this node was successfully upgraded!
15:cgroupDriver: systemd
The line came back. The same phase also reset my test change from check 6: the worker’s
memorySwap went from LimitedSwap back to {}, the value in the ConfigMap. Any setting you edit
only in a node’s file is gone after the next kubeadm upgrade node.
So on kubeadm clusters, change the ConfigMap (or your kubeadm configuration and patches), not just the files. The same warning from check 3 applies: remove the line only once every node passes check 1, because every node that joins or upgrades gets its file from the ConfigMap.
The sneak peek says 1.38 kubeadm stops writing cgroupDriver by default. It doesn’t say whether
kubeadm upgrade also removes the line from an existing ConfigMap, and I couldn’t test a 1.38
kubeadm. Read the 1.38 kubeadm upgrade notes when they are published, before you edit the ConfigMap
by hand.
Clean Up
kind delete cluster --name k138
Summary
- In 1.38 the kubelet takes the cgroup driver only from the runtime. Nodes need containerd 2.0+ or
CRI-O 1.28+, and a
cgroupDriverline in the kubelet configuration is rejected. Upgrade old runtimes before you remove the line. - kubeadm wrote
cgroupDriver: systemdinto both the node file and thekubelet-configConfigMap.kubeadm upgrade noderewrites the file from the ConfigMap, so fix the source. - The
KUBECTL_*_WEBSOCKETSvariables stop working silently. Delete them now and test port-forward through any proxy that made someone set them. - Change
nametocommandin kuberc allowlists, and read the raw file, becausekubectl kuberc viewhides it. - On
LimitedSwapnodes, Pods with a Pod-level memory request equal to the limit are expected to lose swap in 1.38.
As a next step, run cluster-checks.sh against your staging cluster and node-checks.sh on one
node from each node pool. Run the grep and yq checks against your repositories, CI runners, and
every engineer’s ~/.kube/kuberc. Write down every “stop” result before December 16.