Filtering anything deferred or removed from the 1.38 milestone, there are a total of 10 enhancements tracked for code freeze that are going to graduate to Stable status in December’s 1.38 release, according to the official tracker.
DRA: Add support for Partitionable Devices
KEP: #4815
SIG: sig-scheduling
Status: Graduating to Stable
The upcoming 1.38 release will introduce an enhancement to Dynamic Resource Allocation (DRA) that brings back the ability to dynamically partition devices, rather than requiring hardware to be pre-partitioned before workloads request it. This allows Kubernetes to allocate either an entire device or a specific partition of it, based on the workload's requirements. The key improvement is that device vendors can advertise overlapping partition options through ResourceSlice resources, while the Kubernetes scheduler ensures that incompatible or conflicting partitions are never allocated at the same time. This makes resource allocation somewhat more flexible and definitely more efficient since devices can choose to remain available for different workload requirements until an actual allocation is made.
A good example is the NVIDIA MIG (Multi-Instance GPU), where a physical GPU can be divided into different profiles, each consuming specific amounts of memory, processing cores and other hardware resources. Previously, these profiles had to be created in advance, limiting how flexibly the GPU could have been used. Since this enhancement is now stable, a workload can request a particular MIG profile through a standard DRA ResourceClaim, and the vendor's driver can create the required partition after the scheduler has allocated it. The same capability also benefits multi-host TPU scheduling, where workloads need specific groups of interconnected TPUs rather than simply a requested number of devices.
It’s also worth stating that the user-facing ResourceClaim API does not change in this release. Existing mechanisms for requesting devices and partitions remain the same, since the improvement is primarily in how device vendors describe available resources and how Kubernetes handles conflicting allocations behind the scenes. For example, a workload can continue to request a specific GPU partition using a selector like in this example:
apiVersion: resource.k8s.io/v1 kind: ResourceClaim metadata: name: mig-devices spec: devices: requests: - name: mig-1g-5gb exactly: deviceClassName: mig.nvidia.com selectors: - cel: expression: "device.attributes['gpu.nvidia.com'].profile == '1g.5gb'" DRA: Add Device Binding Conditions
KEP: #5007
SIG: sig-scheduling
Status: Graduating to Stable
Kubernetes now has BindingConditions in DRA. BindingConditions is a mechanism that allows the scheduler to delay binding a Pod to a node until external resources required by that workload have been confirmed as ready. Traditionally, Kubernetes scheduling assumes that resources are immediately available once allocated. However, this is not always the case with resources such as fabric-attached GPUs, remote accelerators or FPGAs, which may require additional preparation before they can be used. BindingConditions address this by allowing the scheduler to wait for confirmation that the required resources are ready before completing the Pod binding process, reducing the risk of premature scheduling, Pod failures and manual intervention.
The primary motivation is to support Composable Disaggregated Infrastructure (CDI for short). This is where some resources such as CPUs, memory and GPUs are pooled and dynamically assembled into server configurations. A good example is where a GPU connected through a PCIe or CXL switch may need to be dynamically attached after a Pod has been scheduled, while an FPGA may require time-consuming reprogramming before it is usable. Those BindingConditions allow external device controllers to coordinate this preparation with the scheduler. If preparation fails due to resource contention or hardware errors, the scheduler can use BindingFailureConditions to identify the failure, clear the allocation and allow the Pod to be considered for scheduling again.
The Generally-Available improvement for DRA was designed as a somewhat generalised scheduling capability rather than something specific to fabric-attached hardware. It also managed to introduce prioritisation when multiple candidate devices are available, like devices that can be used immediately are preferred over those requiring additional preparation. The move to beta was intended to validate the feature at scale, gather real-world feedback and ensure compatibility with related Kubernetes components, including Cluster Autoscaler. Ultimately, the goal was for BindingConditions to make Kubernetes scheduling more readiness-aware, while improving reliability and predictability when workloads depend on resources that cannot be made available instantaneously.
Transition from SPDY to WebSockets
KEP: #4006
SIG: sig-api-machinery
Status: Graduating to Stable
This Kubernetes enhancement was a long time coming. The focus was to modernise the communication protocol used for bi-directional streaming between Kubernetes clients and the API Server. Users wanted to replace the now deprecated SPDY/3.1 protocol with WebSockets. This process began in Kubernetes 1.31. Commands such as kubectl exec, kubectl attach, kubectl cp and kubectl port-forward rely on bi-directional streaming to exchange data continuously between the client and the container, rather than using the standard HTTP request/response model. SPDY has been deprecated since 2015 and is no longer widely supported by many proxies, gateways and load balancers. Moving to WebSockets addresses this obvious limitation by adopting a standardised, widely-supported protocol, which will definitely improve the compatibility concerns across different infrastructure providers and networking components.
The initial implementation changed kubectl to establish WebSocket connections with the API Server, which then translated or tunneled the traffic to an existing SPDY connection upstream towards the Kubelet and container runtime. This approach allowed the client-to-API Server communication to be modernised without initially requiring changes to the other Kubernetes components. The longer-term goal was to then extend WebSocket streaming all the way from kubectl to the Kubelet, while the communication between the Kubelet and container runtime should continue using SPDY.
The main benefit was improved compatibility with modern networking infrastructure, especially L7 proxies like Envoy and other L7 gateways that support WebSockets but don't support SPDY. This means users can now run standard commands like kubectl exec and kubectl port-forward through supported gateways without requiring workarounds or provider-specific streaming solutions. The enhancement also considers security and performance, as upgraded connections are now prevented from redirecting to other API endpoints, and performance testing is required to ensure that the additional WebSocket framing and headers do not introduce any noticeable degradation compared with the existing SPDY implementation.
Pod-level Resource Specifications
KEP: #2837
SIG: sig-node
Status: Graduating to Stable
Kubernetes 1.38 introduces Pod-level resource requests and limits, allowing users to define CPU, memory and even hugepages requirements for an entire Pod, rather than having to specify resource constraints for every individual container. Traditionally, Kubernetes calculates a Pod's resource requirements by aggregating the requests and limits of its containers, with the scheduler using these values to identify a suitable node and the kubelet enforcing them through cgroups. This container-centric approach can make resource management difficult, particularly for multi-container workloads where individual resource demands are unpredictable or fluctuate over time. The proposed enhancement adds resource specifications directly to the Pod API, giving users a simpler way to manage and control the overall resource consumption of a Pod.
A key benefit is that containers within a Pod can share an overall resource pool, allowing one container to make use of resources that another container is not currently using. For example, consider a development environment running an IDE alongside multiple tool containers. The IDE might have relatively predictable resource requirements, while the tool containers experience varying CPU and memory demands depending on developer activity. Rather than having to estimate and configure limits for each tool individually, users can define an overall Pod-level resource limit, allowing the containers to make better use of the available capacity. The same principle applies to AI/ML workloads, where different containers may experience resource-intensive periods at different stages of batch processing. This can ultimately reduce unnecessary resource over-allocation and improve the overall utilisation of those clusters.
Importantly, Pod-level resource specifications complement rather than replace existing container-level requests and limits. The enhancement is designed to work alongside existing Kubernetes functionality, including the Topology Manager, Memory Manager and VPA. The initial scope was limited to CPU, memory and Hugepages, so resources such as GPUs, storage and network bandwidth were not included.
It is also worth distinguishing this capability from Burstable Pods since pod-level resource sharing allows containers to share unused resources within the same pod, whereas burstable pods allow workloads to make use of spare resources available elsewhere on the node.
Migrate mixin project from Kubernetes Monitoring to the SIGs org
KEP: #5905
SIG: sig-instrumentation
Status: Graduating to Stable
This change was as the title suggests, purely to migrate the kubernetes-mixin repo from the kubernetes-monitoring GitHub organisation to kubernetes-sigs. This brings the project's ownership and maintenance more closely in line with SIG Instrumentation, which is responsible for the project. These kinds of migrations always make sense if we want to improve collaboration, provide clearer project ownership and establish a consistent home for all the Kubernetes-related repositories within the Kubernetes SIG org. This migration also managed to preserve the repository's existing Git history, which is important for allowing users to retain access to previous commits and continue referencing specific versions. Existing repository links are redirected to the new location, ensuring continuity for current users.
Explicitly Indicating Future Conformance Tests
KEP: #5922
SIG: sig-architecture
Status: Graduating to Stable
From an architectural perspective, the Kubernetes project is introducing a Future Conformance process. This process should allow new e2e tests to be announced as future conformance requirements before they become mandatory. I see this as most important for networking, where many features are implemented by 3rd-party network plugins (Cilium, Calico, Flannel), as well as service proxies and cloud providers rather than directly within Kubernetes itself. Introducing a new conformance requirement without sufficient notice can unexpectedly break existing conformant clusters if external providers have not yet implemented the required functionality. So this proposal somewhat addresses this by introducing a [FutureConformance] test label, allowing upcoming requirements to be clearly identified ahead of a specified Kubernetes release.
During this transition period, future conformance tests will be run separately through dedicated test jobs, giving those 3rd-party devs and Kubernetes distros the opportunity to identify any compatibility gaps and implement the necessary changes before the tests are promoted to [Conformance]. Tools such as Sonobuoy and Hydrophone will also be updated to support optionally running these tests, while conformance documentation will explain the new process. Although initially motivated by sig-network and out-of-tree networking implementations, the approach is designed to be SIG-agnostic and could be applied to other areas where introducing new conformance requirements might break existing clusters.
IP/CIDR Validation Improvements
KEP: #4858
SIG: sig-network
Status: Graduating to Stable
This enhancement makes Kubernetes check IP addresses and CIDR strings in API fields more strictly. Until 1.38, validation accepted anything Go's net.ParseIP and net.ParseCIDR would parse, including forms that different software can read in different ways. That gap was the root of CVE-2021-29923, as it could let an attacker slip an address past range checks. The new rules close the most dangerous of these flaws. They reject IPv4 addresses with leading zeros, which Go reads as decimal but libc-based tools read as octal, so 012.000.001.002 means 12.0.1.2 to one and 10.0.1.2 to the other.
It also rejects the IPv4-mapped IPv6 addresses like ::ffff:1.2.3.4, which are rarely used and mostly cause confusion. It also rejects IPv6 zone identifiers such as %eth0, which no Kubernetes object needs. Subnet-style CIDRs and interface address CIDRs now have separate validators, so a value like 192.168.1.5/24 can no longer pass where a plain subnet is expected and leave downstream code to guess what it means. New IP/CIDR fields must write IPv6 addresses in canonical form, while older fields only get a warning. The CEL IP/CIDR helpers will also share the same validation code as the core API.
The rollout is designed not to break existing clusters. The API server first spends a few releases sending warnings, and the stricter rules then switch on behind a feature gate. Invalid values already stored in existing objects are kept, and updating an unrelated field on such an object won't force you to fix the bad IP first. For example, you can still change a Service's selector even if its clusterIP is 172.030.099.099.
The KEP also deliberately leaves a few things out on purpose. It won't fix bad values already stored in etcd, likewise, it won’t let users correct invalid values in immutable fields, or require canonical IPv6 in older fields. It also won't add cluster-wide alerts about old invalid data or change how CLI arguments and component configs are validated. Smaller related fixes, such as stopping whitespace in LoadBalancerSourceRanges, are ultimately out of scope as well.
Pod-Level Resources support with In-Place Pod Vertical Scaling
KEP: #5419
SIG: sig-node
Status: Graduating to Stable
This 1.38 release finally manages to extend In-Place Pod Resizing (graduated to beta in 1.33) so you can now change pod-level CPU and memory requests and limits on a running pod without recreating it.
Pod-level resources were introduced by KEP-2837, and this builds on them. Until now, in-place resizing worked only on individual containers, so changing a multi-container pod's overall budget meant recreating the pod. To track what is actually applied, PodStatus gains the pod-level Resources and AllocatedResources fields that mirror the existing container-level ones, while Pod.Spec.Resources becomes the desired state.
The feature previously sat behind an opt-in InPlacePodLevelResourcesVerticalScaling gate that was made alpha since v1.34. It also needed the PodLevelResources and InPlacePodVerticalScaling gates, and it only works on cgroupv2 nodes. There was no pod-level resize policy, so each container's own resizePolicy apparently had to decide whether it restarts, with PreferNoRestart as the default option. This also meant a pod-level resize restarts only containers whose effective limits were actually changed.
apiVersion: v1 kind: Pod metadata: name: pod-level-resources spec: resources: requests: cpu: 100m memory: 100Mi limits: cpu: 200m memory: 200Mi containers: - name: c1 image: registry.k8s.io/pause:latest resizePolicy: - resourceName: "cpu" restartPolicy: "NotRequired" - resourceName: "memory" restartPolicy: "RestartRequired" - name: c2 image: registry.k8s.io/pause:latest resources: requests: cpu: 50m memory: 50Mi limits: cpu: 100m memory: 100Mi resizePolicy: - resourceName: "cpu" restartPolicy: "NotRequired" - resourceName: "memory" restartPolicy: "RestartRequired" Separate kubectl user preferences from cluster configs
KEP: #3104
SIG: sig-cli
Status: Graduating to Stable
Kubernetes 1.38 is adding an optional, versioned kuberc file for kubectl. This would be kept separate from the kubeconfig file. It’s worth stating that kubeconfig would keep cluster credentials and server details, whereas the kuberc file would hold the user's own client preferences.
kubeconfig already has a preferences field, but it's rarely used, and new clusters usually come with a new kubeconfig file. Putting preferences there would tie them to whichever kubeconfig is active. A single kuberc applies no matter which --kubeconfig flag or $KUBECONFIG path is in use.
The main reason for it is kubectl's strict backward-compatibility guarantee. Some useful behaviours, like asking for confirmation before deletes, would break existing CI jobs and scripts if they became the default. With kuberc, users can switch them on for their own machine without affecting automation. The KEP also deprecates the kubeconfig preferences field.
The file would therefore live at ~/.kube/kuberc by default. You can point to a different file with the --kuberc flag or the KUBERC environment variable, and setting KUBERC=off turns the feature off.
In beta it's on by default, and KUBECTL_KUBERC=false disables it. It has 4 top-level sections:
-
aliasesdefine custom commands with preset arguments and options. They can't override built-in commands, but they take priority over plugins. -
defaultsset default flag values. Like--server-side(apply) or--interactive(delete). Flags typed on the command line still override them. -
credentialPluginPolicyandcredentialPluginAllowlistlet users allow, deny or allowlist the client-go credential plugin binaries kubectl may run, to block untrusted executables.
Some features are deliberately left out for obvious reasons, like settings per cluster context, the XDG config location, and variable substitution in aliases. Writing the file by hand has proved error-prone, so the KEP also added a super useful kubectl kuberc command with subcommands for editing it. They follow the same file priority system whereby the --kuberc flag is used first, then KUBERC, then the default path.
Allow informers for getting a stream of data instead of chunking
KEP: #3157
SIG: sig-api-machinery
Status: Graduating to Stable
Finally, this last KEP changes how informers fetch their initial list of objects from kube-apiserver. Until this release, informers would send LIST requests, and the server answers them by paging data from etcd.
Memory use for that is rather hard to predict. The server has to fetch, unmarshal, convert and assemble each response, which temporarily takes about five times the size of the etcd data. In large clusters a few heavy LISTs can therefore exhaust the API server's memory, and API Priority and Fairness and Go's garbage collector don't prevent it. The damage can spread to the rest of the node, including the kubelet, so HA clusters are exposed too. The worst case is a large cluster recovering, when many kubelets restart their informers at once and trigger a storm of LISTs.
The fix was to have informers open a WATCH request with a new parameter instead. The server works out the resource version the response must be consistent with and waits for its watch cache to catch up to it. It then streams the objects one at a time and sends a bookmark event to mark the end of the initial list. After that, the same connection carries ordinary watch events. This caps temporary memory at a roughly constant ~2 MB per watcher instead of growing with the size of the data.
It also manages to take a load off etcd and also fixes a fairly long-standing problem of stale reads from the cache. Existing clients keep working, and LIST and pagination aren't in any way removed. This approach is similar to the legacy RV="0" watch, with 2 additions, that (1) the data is guaranteed to be fresh, and (2) a bookmark marks the end of the list. Those stop an informer from essentially time-travelling back to an older state if it restarts or fails over to an API server whose cache is behind.
![[AWS] How to ensure agents share common "internal knowledge": Understanding AWS Context with diagrams [AWS Context]](https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fqiita-user-contents.imgix.net%2Fhttps%253A%252F%252Fqiita-user-contents.imgix.net%252Fhttps%25253A%25252F%25252Fcdn.qiita.com%25252Fassets%25252Fpublic%25252Farticle-ogp-background-afbab5eb44e0b055cce1258705637a91.png%253Fixlib%253Drb-4.1.1%2526w%253D1200%2526blend64%253DaHR0cHM6Ly9xaWl0YS11c2VyLXByb2ZpbGUtaW1hZ2VzLmltZ2l4Lm5ldC9odHRwcyUzQSUyRiUyRnMzLWFwLW5vcnRoZWFzdC0xLmFtYXpvbmF3cy5jb20lMkZxaWl0YS1pbWFnZS1zdG9yZSUyRjAlMkYxOTI5NDklMkYxYmVjZGE4YTRmMWRiOWU5OTQyZDljOGMwYjZkZDA3NjkwMTM2NjgwJTJGbGFyZ2UucG5nJTNGMTc0MTQ4MzQxMD9peGxpYj1yYi00LjEuMSZhcj0xJTNBMSZmaXQ9Y3JvcCZtYXNrPWVsbGlwc2UmYmc9RkZGRkZGJmZtPXBuZzMyJnM9MDZlM2QxY2EzNTVhN2Y4N2M2ZTQxY2RlYzdmN2M0ODI%2526blend-x%253D120%2526blend-y%253D462%2526blend-w%253D90%2526blend-h%253D90%2526blend-mode%253Dnormal%2526mark64%253DaHR0cHM6Ly9xaWl0YS1vcmdhbml6YXRpb24taW1hZ2VzLmltZ2l4Lm5ldC9odHRwcyUzQSUyRiUyRnMzLWFwLW5vcnRoZWFzdC0xLmFtYXpvbmF3cy5jb20lMkZxaWl0YS1vcmdhbml6YXRpb24taW1hZ2UlMkYxZTIwZGI1ZTdlNDA3ZWFlN2I5NzBlYzk5OTg4MGRjOGMzY2MwZjY0JTJGb3JpZ2luYWwuanBnJTNGMTY2NzI3NDk2Mz9peGxpYj1yYi00LjEuMSZ3PTQ0Jmg9NDQmZml0PWNyb3AmbWFzaz1jb3JuZXJzJmNvcm5lci1yYWRpdXM9OCZiZz1GRkZGRkYmYm9yZGVyPTIlMkNGRkZGRkYmZm09cG5nMzImcz04OTI0NDcwMDk1MDMyZjUxYmZlNzE3ZjVkOGUzYmE3ZA%2526mark-x%253D186%2526mark-y%253D515%2526mark-w%253D40%2526mark-h%253D40%2526s%253D0db13b4aef231a19bc684897cf15021a%3Fixlib%3Drb-4.1.1%26w%3D1200%26fm%3Djpg%26mark64%3DaHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjEuMSZ3PTk2MCZoPTMyNCZ0eHQ9JUUzJTgwJTkwQVdTJUUzJTgwJTkxJUUzJTgyJUE4JUUzJTgzJUJDJUUzJTgyJUI4JUUzJTgyJUE3JUUzJTgzJUIzJUUzJTgzJTg4JUU1JTg1JUIxJUU5JTgwJTlBJUUzJTgxJUFFJUUzJTgwJThDJUU3JUE0JUJFJUU1JTg2JTg1JUU3JTlGJUE1JUU4JUFEJTk4JUUzJTgwJThEJUUzJTgyJTkyJUUzJTgxJUE5JUUzJTgxJTg2JUU2JThDJTgxJUUzJTgxJTlGJUUzJTgxJTlCJUUzJTgyJThCJUUzJTgxJThCJTIwQVdTJTIwQ29udGV4dCVFMyU4MiU5MiVFNSU5QiVCMyVFMyU4MSVBNyVFNyU5MCU4NiVFOCVBNyVBMyVFMyU4MSU5OSVFMyU4MiU4QiVFMyU4MCU5MEFXUyUyMENvbnRlJUUyJTgwJUE2JnR4dC1hbGlnbj1sZWZ0JTJDdG9wJnR4dC1jb2xvcj0lMjMxRTIxMjEmdHh0LWZvbnQ9SGlyYWdpbm8lMjBTYW5zJTIwVzYmdHh0LXNpemU9NTYmdHh0LXBhZD0wJnM9MmUyNTBlOTQ2YjI2NWNlMzExM2JiNjY2MzhkNjQyMjU%26mark-x%3D120%26mark-y%3D112%26blend64%3DaHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjEuMSZ3PTgzOCZoPTU4JnR4dD0lNDBOYW5hXzc3NyZ0eHQtY29sb3I9JTIzMUUyMTIxJnR4dC1mb250PUhpcmFnaW5vJTIwU2FucyUyMFc2JnR4dC1zaXplPTM2JnR4dC1wYWQ9MCZzPTg1YzQ4MzUyMmVkMGVhNmYxYjhkZjU5MjVjYzhiNjQz%26blend-x%3D242%26blend-y%3D454%26blend-w%3D838%26blend-h%3D46%26blend-fit%3Dcrop%26blend-crop%3Dleft%252Cbottom%26blend-mode%3Dnormal%26txt64%3DS0RESeOCouOCuOODo-OCpOODq-mWi-eZuuOCu-ODs-OCv-ODvOagquW8j-S8muekvg%26txt-x%3D242%26txt-y%3D539%26txt-width%3D838%26txt-clip%3Dend%252Cellipsis%26txt-color%3D%25231E2121%26txt-font%3DHiragino%2520Sans%2520W6%26txt-size%3D28%26s%3Df8046c90c4f92cfdcf8547608522897c)