← News

Technology updates

Kubernetes v1.38 preview: WebSocket env vars removed, kubelet to discover cgroup driver from CRI

Kubernetes' v1.38 sneak peek covers kubectl WebSocket env-var removal, kuberc graduating, kubelet reading the cgroup driver from CRI, and pod-level swap changes.

Published: 2026-11-23 17:19 UTCUpdated: 2026-11-23 17:19 UTCSource date: 2026-11-23

Official announcement

The Kubernetes project's v1.38 sneak peek lists several changes affecting cluster operators and developers, and states the items reflect the current state of the v1.38 release and are subject to change. The following facts are the project's claims.

On the kubectl side, the post says KUBECTL_REMOTE_COMMAND_WEBSOCKETS and KUBECTL_PORT_FORWARD_WEBSOCKETS will be removed, with kubectl always trying WebSockets first and falling back to SPDY. The kubectl.config.k8s.io/v1 API will also drop the deprecated name alias for credential plugin allowlist entries, which should use command instead.

On nodes, the sneak peek says the v1.38 kubelet defaults to disallowing legacy cgroup driver configuration and instead expects the driver from the CRI RuntimeConfig RPC. The cgroupDriver field is deprecated and rejected unless the temporary LegacyCgroupDriverFallback gate is enabled. If the driver cannot be obtained from the runtime after retries, kubelet exits before registering the node, and kubeadm no longer defaults cgroupDriver to systemd.

For Linux cgroup v2 nodes using LimitedSwap, the post says the v1.38 kubelet applies swap limits based on pod-level memory settings, so a pod whose pod-level request equals its limit gets no swap even if a container requests less than its limit. kuberc and pod-level resources are listed as expected to graduate to stable.

Analysis

This is a compatibility notice for operators and platform teams rather than a feature pitch. The cgroup driver change is the likeliest to affect node bring-up: kubelet now depends on the runtime answering a CRI RPC before it can start, so node bootstrap ordering and pinned older containerd or CRI-O builds are the practical failure points. Teams should validate runtime and kubelet version pairings in staging before upgrading.

For teams running LLM serving pods on LimitedSwap nodes, the new pod-level rule changes a pod's ability to absorb memory spikes: a pod that sets equal memory request and limit for predictable scheduling loses all swap, which can turn a soft OOM into a container kill under load. This implication is conditional on each pod's resource settings and still needs testing against real workloads.

The kubectl environment-variable removals are low risk for API-using teams, but CI scripts that set these variables for deterministic behavior should be cleaned up early, since they will become no-ops without additional warning. The expected graduation of kuberc and pod-level resources suggests stabilizing configuration formats, but the post gives no firm timeline, so production config changes should wait.

What remains unverified

The post provides no KEP numbers, deprecation windows or patch-release timing for each item, so the formal release notes should be treated as authoritative. The minimum runtime versions each driver-discovery path requires, how long LegacyCgroupDriverFallback stays around, and how the pod-level swap rule behaves with mixed container settings all need confirmation through staging clusters and real workloads; no third-party reproduction data is available yet.


Related articles