Kubernetes 1.38 Beta, Tested: cgroup Driver, kuberc v1, WebSockets
The Kubernetes 1.38 sneak peek went up on 23 November, and I summarised it in Kubernetes 1.38 sneak peek: the cgroup driver change and 5 more. A list of planned changes tells you where to look. It does not tell you what the failure looks like on your machine, or which of the changes are already in the code you can download today. So on 24 November I built a cluster from the newest 1.38 pre-release, v1.38.0-beta.0, and tried each change.
Short version. The WebSocket opt-out is already gone in the beta. kuberc v1 is already there, and it is less forgiving than the blog suggests: one stale field stops every kubectl command, and the new API version breaks kubectl 1.37 entirely. Two smaller traps turned up along the way. Adding the new cgroup feature gate early makes the kubelet panic. A webhook with wildcard rules loses auth reviews without a warning. The headline breaking change, the kubelet taking its cgroup driver only from the runtime, is not in the beta at all.
The setup
Everything ran locally against a throwaway kind cluster. KUBECONFIG=/dev/null was set on the host, and every kubectl call used a kubeconfig file in the scratch directory, so no real cluster was involved.
| Item | Value |
|---|---|
| Host | Apple M3 Pro, macOS 27.0.1 |
| Container runtime | Docker Desktop, engine 28.0.4, VM kernel 6.10.14-linuxkit, cgroup v2, 11 CPUs, 8 GB |
| kind | v0.33.0, binary checked against its published sha256 |
| Kubernetes | v1.38.0-beta.0 (6 November 2026), one control plane and one worker |
| Node runtime | containerd 2.3.4, from the kind base image |
| kubectl | v1.38.0-beta.0 and v1.37.2 for darwin/arm64 from dl.k8s.io, both sha256-checked |
kind does not publish node images for pre-releases, but it can build one from the official release tarballs:
export KUBECONFIG=/dev/null
kind build node-image --type release v1.38.0-beta.0 --image kindest/node:v1.38.0-beta.0
# 5 min 32 s here, most of it downloading the 327 MB kubernetes-server-linux-arm64.tar.gz
# resulting image: 1.27 GB
cat > kind.yaml <<'EOF'
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
name: k138
nodes:
- role: control-plane
- role: worker
EOF
kind create cluster --config kind.yaml --image kindest/node:v1.38.0-beta.0 --kubeconfig ./kc
# 21.2 s to a ready cluster
To change kubelet settings I edited /var/lib/kubelet/config.yaml inside the worker container and restarted the kubelet with systemctl restart kubelet. That is how you test node behaviour on kind without rebuilding the image.
What is already in the beta
The kubelet reports its feature gates on /metrics, which is the quickest way to see what a pre-release actually contains:
kubernetes_feature_enabled{name="KubeletCgroupDriverFromCRI",stage=""} 1
kubernetes_feature_enabled{name="PodLevelResources",stage="BETA"} 1
kubernetes_feature_enabled{name="ExcludeAdmissionWebhookVirtualResources",stage="BETA"} 1
kubernetes_feature_enabled{name="EvictionRequestAPI",stage="ALPHA"} 0
KubeletCgroupDriverFromCRI has an empty stage, meaning GA. Pod-level resources are still beta in beta.0, although the sneak peek expects them to reach stable in 1.38. The EvictionRequest gate exists, off by default as an alpha gate should be.
The cgroup driver: what the beta does today
The sneak peek says that in 1.38 the kubelet rejects a cgroupDriver setting unless the temporary LegacyCgroupDriverFallback gate is on, and that kubeadm stops writing cgroupDriver: systemd. That change is PR 136731, which was still open on 24 November: approved, on the v1.38 milestone, but not merged. The beta behaved accordingly.
kubeadm still writes the field. kubeadm config print init-defaults --component-configs KubeletConfiguration from the 1.38 beta prints cgroupDriver: systemd, and the worker's /var/lib/kubelet/config.yaml has the same line.
The runtime already wins, silently. At startup the kubelet logged:
server.go:1516] "Using cgroup driver setting received from the CRI runtime" cgroupDriver="systemd"
I then set cgroupDriver: cgroupfs in the kubelet config, which is wrong for this node, and restarted. The kubelet logged the same line, used systemd, and printed no warning that the configured value was being ignored. The node stayed Ready. On a modern runtime, then, the setting is already dead weight. The 1.38 change only turns a silently ignored field into an error.
The new gate panics the kubelet if it is too early. One idea is to add LegacyCgroupDriverFallback: true to kubelet configs now, so nothing breaks when 1.38 lands. Do not do this. The beta kubelet does not know the gate yet:
panic: failed to merge global and in-flight KubeletConfiguration while setting defaults,
error: unrecognized feature gate: LegacyCgroupDriverFallback
systemd restarted it about once a second until I removed the line. Every kubelet older than the one that introduces the gate will do the same. Add the gate only in configs that 1.38 kubelets read, and only if you really have a runtime that cannot answer.
The kubelet already exits without a runtime. The PR discussion warns that kubelets will now fail when the runtime is not up. I stopped containerd and restarted the kubelet. The beta kubelet exited at once with validate CRI v1 runtime API for endpoint "unix:///run/containerd/containerd.sock" ... no such file or directory. kind's unit has Restart=always with RestartSec=1s, so it tried again about once a second for the 40 seconds I left it. When I started containerd, the kubelet was back within seconds. On your own nodes the question is whether the kubelet unit restarts itself. kind's 1 second restart interval is lower than upstream's, which the unit file itself says.
What I could not test is the case the change is really about: a containerd 1.7 node that answers CRI calls but does not implement RuntimeConfig. The kind base image ships containerd 2.3.4 and I did not build a 1.7 image. Without the PR merged, the beta would fall back anyway.
kubectl: the WebSocket opt-out is gone
I ran kubectl exec ws -v=7 -- echo hi against an agnhost Pod with both kubectl versions, with and without KUBECTL_REMOTE_COMMAND_WEBSOCKETS=false, and looked at the request headers in the verbose log.
| kubectl | Variable | Protocol used |
|---|---|---|
| 1.37.2 | unset | WebSocket |
| 1.37.2 | false |
SPDY (X-Stream-Protocol-Version v5 down to v1) |
| 1.38.0-beta.0 | unset | WebSocket |
| 1.38.0-beta.0 | false |
WebSocket; the variable is ignored |
The removal (PR 142861, merged 13 October) is in the beta. If a corporate proxy or an old API gateway in front of your clusters breaks WebSocket upgrades, kubectl 1.38 still falls back to SPDY when the upgrade is refused. A proxy that accepts the upgrade and then mangles the stream gets no fallback, though, and you can no longer force SPDY from the client. I did not test KUBECTL_PORT_FORWARD_WEBSOCKETS, but the same PR removes it.
kuberc: v1 is here, and strict
kuberc is the separate kubectl preferences file (aliases, default flags, credential plugin policy) that the sneak peek expects to graduate in 1.38. I wrote four small files that differ only in API version and in whether the credential plugin allowlist entry uses name or command:
apiVersion: kubectl.config.k8s.io/v1beta1 # or kubectl.config.k8s.io/v1
kind: Preference
credentialPluginPolicy: Allowlist
credentialPluginAllowlist:
- name: gke-gcloud-auth-plugin # or: command: gke-gcloud-auth-plugin
Then I ran kubectl --kuberc=<file> version --client with both binaries and recorded the exit code.
Two results surprised me.
A stale field in a v1 file stops kubectl entirely. With apiVersion: kubectl.config.k8s.io/v1 and a name: entry, kubectl 1.38 beta prints a strict decoding warning, then refuses to run:
kuberc: ignoring strict decoding error in kuberc-name-v1.yaml: strict decoding error:
unknown field "credentialPluginAllowlist[0].name"
error occurred while applying preferences misconfigured credential plugin allowlist: empty allowlist entry #1
It drops the unknown field, which leaves the entry empty, and an empty allowlist entry is a fatal error. The command was kubectl version --client, which uses no credential plugin. Every kubectl command for that user stops working until the file is fixed.
A v1 file breaks kubectl 1.37. kubectl 1.37.2 does not know the v1 API, finds no valid preferences, and exits 1 on everything, even with a correct command: entry. Laptops, CI runners and bastion hosts rarely move kubectl versions together, so a team that shares a kuberc in a dotfiles repo should stay on v1beta1 with command until the oldest kubectl is 1.38. With v1beta1, kubectl 1.38 beta accepted name and printed nothing, although the field has been deprecated since 1.36.
Admission webhooks: the warning only catches explicit rules
Since 1.37, admission webhooks no longer see virtual writes to TokenReview, SubjectAccessReview and the other auth review resources. The sneak peek says the API server warns when a webhook configuration names one of them. It does, for explicit rules. Applying a ValidatingWebhookConfiguration whose rule lists tokenreviews, subjectaccessreviews and selfsubjectaccessreviews produced:
Warning: webhooks[0].rules[0]: tokenreviews.authentication.k8s.io is excluded from admission webhooks; this rule will have no effect
Warning: webhooks[0].rules[0]: subjectaccessreviews.authorization.k8s.io is excluded from admission webhooks; this rule will have no effect
Warning: webhooks[0].rules[0]: selfsubjectaccessreviews.authorization.k8s.io is excluded from admission webhooks; this rule will have no effect
The same webhook with apiGroups: ["*"] and resources: ["*"] was created with no warning at all. Catch-all webhooks are exactly the ones a policy or audit tool tends to install. If yours relied on seeing auth reviews, it stopped seeing them in 1.37 and nothing told you. Use API server audit logs for that instead.
What I did not test
| Change | Why not |
|---|---|
Kubelet rejecting cgroupDriver with an old runtime |
PR 136731 not merged; no containerd 1.7 node image |
kubeadm preflight error for runtimes without RuntimeConfig |
Same PR |
Pod-level resources swap change on LimitedSwap |
The Docker Desktop VM has a 1 GB swap file, but I did not confirm the change is in beta.0, and a laptop VM says little about swap under real memory pressure |
| EvictionRequest API (alpha) | Needs an alpha API group and a responder controller; worth its own post once the docs land |
| DRA partitionable devices | No devices to partition |
What to do before 1.38
- Build a beta cluster yourself. It is two commands and under ten minutes with kind, and it shows what is in the code, not just what is planned. Rebuild with each new pre-release; the next one will show whether PR 136731 made it in.
- Move kuberc allowlist entries from
nametocommandnow, and keep the file onv1beta1. Change the API version only when every kubectl that reads the file is 1.38. - Do not put
LegacyCgroupDriverFallbackin any kubelet config that an older kubelet reads. It crashes on the unknown gate. - Remove
cgroupDriversettings you no longer need. On containerd 2.x the kubelet already ignores them, so removing them changes nothing today and avoids an error later. - Check that kubelet units restart on failure and start after the runtime. The beta kubelet already exits when the runtime socket is missing.
- Remove
KUBECTL_REMOTE_COMMAND_WEBSOCKETSandKUBECTL_PORT_FORWARD_WEBSOCKETSfrom CI and shell profiles, and fix any proxy that needed them. - List webhooks with wildcard rules (
kubectl get validatingwebhookconfigurations,mutatingwebhookconfigurations -o yaml | grep -n '"\*"') and confirm none of them was meant to watch auth reviews.
Dates and the status of each removal are on the Kubernetes release and deprecation calendar, which I update as the 1.38 changelog settles.
FAQ
Can I run Kubernetes 1.38 in kind before it is released?
Yes. kind build node-image --type release v1.38.0-beta.0 builds a node image from the official release tarballs. With kind v0.33.0 on my laptop it took 5 minutes 32 seconds, and a two-node cluster then started in 21 seconds.
Does the 1.38 beta reject the kubelet cgroupDriver setting?
No. v1.38.0-beta.0 still accepts it, and kubeadm still writes it. On containerd 2.3.4 the kubelet ignored a wrong value and used the driver the runtime reported, without a warning. The change that rejects the setting was in an open pull request on 24 November 2026.
Why does kubectl fail with "no valid preferences found"?
Your kuberc probably uses apiVersion: kubectl.config.k8s.io/v1 and your kubectl is 1.37 or older, which only knows v1beta1. Change the file back to v1beta1 or upgrade kubectl.
Why does kubectl 1.38 fail with "empty allowlist entry"?
A v1 kuberc has a credential plugin allowlist entry that uses name, which v1 does not have. Rename the field to command.
Related: Kubernetes 1.38 Sneak Peek: The cgroup Driver Change and 5 More, kube-proxy ipvs to nftables, Tested and How to Upgrade a kubeadm Cluster to Kubernetes 1.37.
Spot an error or something out of date? Email me and I will fix it and log it on the corrections page.
I'm Ajay Kumar — I build and operate PandaStack, an open-source Firecracker microVM cloud for AI agents, and write about the infrastructure and tooling around it.
Need this kind of infrastructure work? See what I do or email hello@ajayk.sh.
Related
ELB for Envoy Is GA: AWS Now Runs Your Envoy Gateway Proxies
On 25 November 2026 AWS made ELB for Envoy generally available: managed Envoy 1.40 proxies that take your own config and an open source Envoy Gateway provider. What it accepts, what it rejects, the pricing, what I ran on kind, and what to do this week.
8 minNov 27, 2026How to Move Envoy Gateway to ELB for Envoy: Pre-flight Checks (Tested)
ELB for Envoy went GA on 25 November 2026 and rejects several Envoy Gateway defaults. A read-only pre-flight script tested on kind with Envoy Gateway 1.10, the fixes for file access logs and global rate limits, the side-by-side migration steps, and the failures I hit.
12 minNov 25, 2026How to Upgrade containerd 1.7 to 2.x Before Kubernetes 1.38 (Tested)
Kubernetes 1.38 wants the cgroup driver from the runtime, and containerd 1.7 cannot report it. A tested upgrade path from 1.7.36 to 2.3.7 LTS and 2.4.2: what the old config does on 2.x, the tracing setting that silently stops working, config version 4 and rollback, and a per-node runbook.
9 min