Kubernetes v1.38 Sneak Peek for your upgrade
Kubernetes v1.38 changes cgroup driver detection, kubectl WebSocket settings, and swap limits. Check these runtime and workload settings before you upgrade.
Kubernetes v1.38 changes cgroup driver detection, kubectl WebSocket settings, and swap limits. Check these runtime and workload settings before you upgrade.
Kubernetes v1.38 is scheduled for December 16, 2026. The release team's November 23 update outlines changes to container runtimes, cgroups, kubectl, and admission webhooks. Start your upgrade planning with the nodes: an incompatible runtime or a legacy kubelet setting can prevent a node from registering.
The kubelet gets the cgroup driver from the container runtime through the Container Runtime Interface (CRI) RuntimeConfig RPC. In v1.38, the legacy mechanism for configuring the driver manually is disabled by default.
Start the container runtime before the kubelet so the kubelet can query it. If the query keeps failing after retries, the kubelet exits before registering the node. Kubernetes is also deprecating the cgroupDriver setting. The kubelet rejects the field unless you enable the temporary LegacyCgroupDriverFallback feature gate.
kubeadm will stop setting cgroupDriver to systemd by default. Its preflight checks will report an error if the runtime lacks support for the required RPC. Check older runtime versions and existing kubelet configuration before upgrading.
See KEP-4033.
Since Kubernetes v1.35, the kubelet has refused to start on nodes using cgroup v1 unless you set failCgroupV1: false. Kubernetes v1.38 keeps that override as a temporary measure. Plan the move to cgroup v2 for any remaining nodes ahead of the future removal of cgroup v1 support.
See KEP-5573.
WebSockets became the kubectl default for exec, attach, and cp in v1.30 and for port-forward in v1.31. Kubernetes v1.38 is removing the environment variables that let you opt out:
KUBECTL_REMOTE_COMMAND_WEBSOCKETSKUBECTL_PORT_FORWARD_WEBSOCKETSkubectl will try WebSockets first and can still fall back to SPDY. Remove the two settings from scripts and CI/CD environments when you upgrade.
See KEP-4006.
kubectl keeps user preferences such as aliases, default options, and credential plugin policy in a separate kuberc file. Cluster settings and credentials stay in the kubeconfig.
The planned stable API, kubectl.config.k8s.io/v1, drops the name alias from credential plugin allowlist entries. The alias has been deprecated since v1.36. Use command in any affected entries before moving from kubectl.config.k8s.io/v1beta1 to the stable API.
See KEP-3104.
Kubernetes has enabled ExcludeAdmissionWebhookVirtualResources by default since v1.37. With the gate enabled, validating and mutating admission webhooks no longer receive virtual writes for these resources:
TokenReviewSelfSubjectReviewSubjectAccessReviewSelfSubjectAccessReviewLocalSubjectAccessReviewSelfSubjectRulesReviewCreating or updating a webhook configuration that matches these resources produces a deprecation warning. The API server also logs affected configurations at startup. You can still turn the gate off if your webhook depends on those requests. The project plans to lock it on when the feature graduates to stable.
See KEP-5793.
Pod-level resources let you set CPU, memory, and huge page requests and limits for the Pod as a whole. The planned graduation in v1.38 also brings a change to swap behavior.
On Linux nodes running cgroup v2 with LimitedSwap, the kubelet will use Pod-level memory settings to calculate swap limits. If a Pod's memory request equals its memory limit, neither the Pod nor its containers can use swap. This also applies to individual containers whose memory request is below their limit. Review workloads that rely on swap before the upgrade.
See KEP-2837.
With partitionable devices, a Dynamic Resource Allocation (DRA) driver can expose a physical device such as a GPU both as a whole and as smaller partitions. The scheduler considers those allocations together so it can fit requests within the physical device's capacity. The planned graduation will lock on the DRAPartitionableDevices feature gate.
See KEP-4815.
The planned alpha EvictionRequest API gives an application time to finish work before a Pod eviction. During a node drain, for example, a controller can create an EvictionRequest. The eviction request controller then coordinates the Pod's configured responders so they can finish processing, clean up resources, or migrate data before the Pod is terminated.
If there are no custom responders or they do not complete the process, Kubernetes can fall back to the existing API-based eviction mechanism, which continues to respect PodDisruptionBudgets (PDBs).
Testing the alpha requires the EvictionRequestAPI feature gate and the corresponding alpha API group. Check the official v1.38 release notes for the final requirements.
See KEP-4563.
RuntimeConfig RPC.cgroupDriver settings.name with command in kuberc credential plugin allowlists.LimitedSwap.Test whether your node images can start the kubelet and register with the cluster using the expected cgroup driver. The planned changes above reflect the November 23, 2026 release update. The final scope may change before the planned December 16 release.
Learn more about Kubernetes on Loopback.
Start with managed Kubernetes, object storage, registry, or Bundles. One account, one permission model.