Cloud —

Kubernetes v1.38 changes: WebSocket opt-out removed, cgroup v1 support phased out

The planned Kubernetes v1.38 release includes several modifications, where features might be superseded, eliminated, or marked for deprecation to support the project's overall stability.

The release team wishes to inform operators about these anticipated shifts to aid in the ongoing upkeep of their Kubernetes deployments and staying current with the latest developments. This documentation reflects the current status of the v1.38 release and is subject to alteration prior to the actual rollout date.

Regarding `kubectl`, the environment variables allowing users to opt out of WebSockets have been removed. Since version v1.30, `kubectl exec`, `attach`, and `cp` have defaulted to using WebSockets instead of SPDY, and `kubectl port-forward` has used WebSockets since v1.31. The variables `KUBECTL_REMOTE_COMMAND_WEBSOCKETS` and `KUBECTL_PORT_FORWARD_WEBSOCKETS` previously permitted disabling this default behavior, but these are slated for removal in v1.38. Consequently, `kubectl` will now invariably attempt WebSockets first, only reverting to SPDY when necessary, matching the current default operational mode. Any scripts or continuous integration environments that currently set these environment variables can remove them, as they will cease to have any operational impact. Further details on this transition can be found in KEP-4006: Transition from SPDY to WebSockets.

Furthermore, the `name` field has been deprecated in the `kubectl.config.k8s.io/v1beta1` API within the `kuberc` file, which maintains kubectl user preferences separately from cluster credentials, including the list of credential plugins kubectl is permitted to execute. In `kuberc`, an allowlist entry could previously utilize `name` as an alias for a command. Because the `name` field has been deprecated since v1.36, and the new `kubectl.config.k8s.io/v1` API, which is expected to become stable in v1.38, will not accommodate `name`, any existing allowlist entries employing `name` must be updated to use `command` instead. For more information, refer to KEP-3104: Separate kubectl user preferences from cluster configs.

Major changes slated for the release include the future elimination of support for cgroup v1. Since v1.35, kubelet instances fail to initialize on nodes running cgroup v1 unless the configuration includes `failCgroupV1: false`. While this option remains available in v1.38, it should be viewed as a temporary remedy, as the removal of cgroup v1 support is scheduled for a subsequent release. Operators should, if they have not already done so, formulate a plan to migrate to cgroup v2. Refer to KEP-5573: Remove cgroup v1 support for more context.

Additionally, admission webhooks will no longer receive authentication and authorization review requests. The `ExcludeAdmissionWebhookVirtualResources` feature gate has been enabled by default since v1.37. When this gate is active, validating and mutating admission webhooks stop receiving requests pertaining to (virtual) writes for TokenReview, SelfSubjectReview, SubjectAccessReview, SelfSubjectAccessReview, LocalSubjectAccessReview, or SelfSubjectRulesReview. If a webhook configuration is created or modified and its rules reference any of these resources, a deprecation warning will be issued, and the API server will log any pre-existing configurations that are affected upon startup. If your operational procedures depend on a webhook observing these specific requests, you may temporarily disable the feature gate, but be aware that the gate is intended to be locked on once the feature achieves stability. Details are available in KEP-5793: Manifest Based Admission Control Config.

The release introduces breaking changes concerning how container runtimes report the cgroup driver. In versions v1.37 and earlier, the kubelet offered a legacy method for configuring the cgroup driver. The contemporary methodology involves the CRI RuntimeConfig RPC, which reports the cgroup driver recommended by the container runtime. In v1.38, the kubelet will default to disallowing the legacy configuration mechanism; this mechanism will be both deprecated and unavailable unless explicitly reinstated. Consequently, nodes running v1.38 will essentially necessitate that the container runtime is operational before the kubelet initiates, allowing it to query the expected cgroup driver. Should the kubelet fail to obtain the cgroup driver from the runtime, even after multiple attempts, it will terminate with an error before successfully registering the node. Moreover, the `cgroupDriver` field within the kubelet configuration file will be deprecated as part of this upcoming release. Not only is specifying this field deprecated, but the kubelet will actively reject it unless the legacy mechanism is reactivated by enabling the (temporary) `LegacyCgroupDriverFallback` feature gate. The `kubeadm` utility will also cease to default `cgroupDriver` to systemd, and its preflight checks will report an error if the runtime does not support the RPC. Operators whose nodes utilize an older, incompatible container runtime must adhere to the instructions provided in the official v1.38 release notes concerning necessary upgrades. Consult KEP-4033: Discover cgroup driver from CRI and kubernetes/kubernetes#136731 for further reading.

For nodes running Linux with cgroup v2 and configured with LimitedSwap, the kubelet in v1.38 will begin applying swap restrictions based on the Pod's pod-level memory settings when pod-level resources are utilized. This implies that Pods whose pod-level memory request matches their memory limit will receive no swap whatsoever, affecting both the Pod and every container within it, even if a container specifies a memory request lower than its defined limit. Before performing an upgrade, operators should examine any workloads that depend on swap and carefully review the official v1.38 release notes for comprehensive guidance. Refer to KEP-2837: Pod Level Resource Specifications for more information.

Several enhancements are anticipated for the forthcoming v1.38 release, though this list does not constitute a guarantee, as release content remains subject to modification. The `kuberc`, which separates kubectl user preferences—such as default options, aliases, and credential plugin policies—into a distinct configuration file, is expected to reach stable status in v1.38. See Kubectl user preferences (kuberc) or KEP-3104: Separate kubectl user preferences from cluster configs for details. Similarly, pod-level resources, which enable the specification of CPU, memory, and hugepages requests and limits for an entire Pod, are expected to graduate to stable in v1.38. If you operate Linux nodes utilizing LimitedSwap, please review the aforementioned swap behavior alteration prior to upgrading. Read Assign Pod-level CPU and memory resources or KEP-2837: Pod Level Resource Specifications for specifics. Furthermore, support for partitionable devices within Dynamic Resource Allocation (DRA) is expected to become stable in v1.38. Partitionable devices permit a DRA driver to advertise a resource, like a GPU, both as a complete unit and as smaller partitions, allowing the scheduler to allocate only combinations that fit the physical device. The `DRAPartitionableDevices` feature gate will be locked on when this feature stabilizes. Read Partitionable devices or KEP-4815: DRA: Add support for partitionable devices for more information.

The EvictionRequest API is introduced to manage Pod evictions in a more controlled manner, as simple termination is not always appropriate when applications might be engaged in critical operations like data cleanup or migration. This API provides applications and controllers with a window of time to prepare before a Pod is removed. For instance, when a node requires draining or a Pod needs relocation, a controller can issue an EvictionRequest to signal this requirement. The eviction request controller then coordinates with the responders configured for that Pod, which can execute application-specific tasks such as finishing current work, cleaning up assets, or migrating data before the Pod terminates. If no specialized responder is present or if the responders fail to complete their tasks, Kubernetes will revert to the existing API-initiated eviction mechanism, which still honors PodDisruptionBudgets (PDBs). It is important to note that the EvictionRequest API does not replace PDBs; rather, it grants applications a chance to participate in the eviction sequence. Since this is an alpha feature, enabling the `EvictionRequestAPI` feature gate and the corresponding alpha API group will be necessary. Operators should consult the v1.38 release notes and documentation once available to confirm the precise prerequisites. Refer to KEP-4563: EvictionRequest API for further reading.

Market participants and institutions should note that the Kubernetes v1.38 release is scheduled for Wednesday, December 16th, 2026. Further details regarding new features and deprecations will be formally announced within the CHANGELOG for that specific release. Information about changes in previous versions can be found in the release notes for Kubernetes v1.37, v1.36, and v1.35.

These platform evolutions underscore a broader industry trend toward increased operational rigor and resource management granularity within container orchestration systems. The ongoing maturation of Kubernetes is evidenced by the refinement of APIs, such as the separation of user preferences in `kuberc`, and the introduction of mechanisms like the EvictionRequest API, which aims to provide more graceful handling for stateful workloads during infrastructure events.

To engage with the project, individuals can join one of the numerous Special Interest Groups (SIGs) that align with their technical interests. If guidance is needed on where to begin, the community offers monthly New Contributor Orientations to explain the project structure and assist with a first contribution. Further involvement options include reading about becoming a Kubernetes Contributor, monitoring the blog

Why it matters

Operators must review these changes to ensure their Kubernetes environments remain functional post-v1.38 release. Specifically, infrastructure relying on legacy cgroup v1 or specific kubectl configurations needs immediate planning for migration. These shifts impact runtime behavior and configuration management.

Reported by Kubernetes.

cloud

Related coverage

Elsewhere in this edition