<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Nigel Douglas</title>
    <description>The latest articles on DEV Community by Nigel Douglas (@nigel_douglas_edera).</description>
    <link>https://dev.to/nigel_douglas_edera</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4276759%2Fe578e920-e047-47bb-8b00-282707024a13.jpg</url>
      <title>DEV Community: Nigel Douglas</title>
      <link>https://dev.to/nigel_douglas_edera</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nigel_douglas_edera"/>
    <language>en</language>
    <item>
      <title>10 Enhancements Graduating to Stable in Kubernetes 1.38</title>
      <dc:creator>Nigel Douglas</dc:creator>
      <pubDate>Wed, 02 Dec 2026 11:24:52 +0000</pubDate>
      <link>https://dev.to/nigel_douglas_edera/10-enhancements-graduating-to-stable-in-kubernetes-138-2cjl</link>
      <guid>https://dev.to/nigel_douglas_edera/10-enhancements-graduating-to-stable-in-kubernetes-138-2cjl</guid>
      <description>&lt;p&gt;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 &lt;strong&gt;&lt;a href="https://github.com/orgs/kubernetes/projects/269/views/1?filterQuery=-is%3Adraft+-status%3ADeferred%2C%22Removed+from+Milestone%22+-enhancement-type%3ADocs+enhancement-type%3AGraduating+stage%3AStable" rel="noopener noreferrer"&gt;official tracker&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  DRA: Add support for Partitionable Devices
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;KEP:&lt;/strong&gt; &lt;a href="https://github.com/orgs/kubernetes/projects/269/views/1?filterQuery=-is%3Adraft+-status%3ADeferred%2C%22Removed+from+Milestone%22+-enhancement-type%3ADocs+enhancement-type%3AGraduating+stage%3AStable&amp;amp;pane=issue&amp;amp;itemId=245468540&amp;amp;issue=kubernetes%7Cenhancements%7C4815" rel="noopener noreferrer"&gt;#4815&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;SIG:&lt;/strong&gt; sig-scheduling&lt;br&gt;
&lt;strong&gt;Status:&lt;/strong&gt; Graduating to Stable&lt;/p&gt;

&lt;p&gt;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 &lt;code&gt;ResourceSlice&lt;/code&gt; 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.&lt;/p&gt;

&lt;p&gt;A good example is the &lt;strong&gt;&lt;a href="https://www.nvidia.com/en-gb/technologies/multi-instance-gpu/" rel="noopener noreferrer"&gt;NVIDIA MIG&lt;/a&gt;&lt;/strong&gt; (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 &lt;code&gt;ResourceClaim&lt;/code&gt;, 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.&lt;/p&gt;

&lt;p&gt;It’s also worth stating that the user-facing &lt;code&gt;ResourceClaim&lt;/code&gt; 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:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;apiVersion&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;resource.k8s.io/v1&lt;/span&gt;
&lt;span class="na"&gt;kind&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;ResourceClaim&lt;/span&gt;
&lt;span class="na"&gt;metadata&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;mig-devices&lt;/span&gt;
&lt;span class="na"&gt;spec&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;devices&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;requests&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;mig-1g-5gb&lt;/span&gt;
      &lt;span class="na"&gt;exactly&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="na"&gt;deviceClassName&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;mig.nvidia.com&lt;/span&gt;
        &lt;span class="na"&gt;selectors&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;cel&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="na"&gt;expression&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"device.attributes['gpu.nvidia.com'].profile == '1g.5gb'"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  DRA: Add Device Binding Conditions
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;KEP:&lt;/strong&gt; &lt;a href="https://github.com/orgs/kubernetes/projects/269/views/1?filterQuery=-is%3Adraft+-status%3ADeferred%2C%22Removed+from+Milestone%22+-enhancement-type%3ADocs+enhancement-type%3AGraduating+stage%3AStable&amp;amp;pane=issue&amp;amp;itemId=245468572&amp;amp;issue=kubernetes%7Cenhancements%7C5007" rel="noopener noreferrer"&gt;#5007&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;SIG:&lt;/strong&gt; sig-scheduling&lt;br&gt;
&lt;strong&gt;Status:&lt;/strong&gt; Graduating to Stable&lt;/p&gt;

&lt;p&gt;Kubernetes now has &lt;strong&gt;BindingConditions&lt;/strong&gt; 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.&lt;/p&gt;

&lt;p&gt;The primary motivation is to support &lt;strong&gt;&lt;a href="https://en.wikipedia.org/wiki/Composable_disaggregated_infrastructure" rel="noopener noreferrer"&gt;Composable Disaggregated Infrastructure&lt;/a&gt;&lt;/strong&gt; (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 &lt;code&gt;BindingFailureConditions&lt;/code&gt; to identify the failure, clear the allocation and allow the Pod to be considered for scheduling again.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;
&lt;h2&gt;
  
  
  Transition from SPDY to WebSockets
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;KEP:&lt;/strong&gt; &lt;a href="https://github.com/orgs/kubernetes/projects/269/views/1?filterQuery=-is%3Adraft+-status%3ADeferred%2C%22Removed+from+Milestone%22+-enhancement-type%3ADocs+enhancement-type%3AGraduating+stage%3AStable&amp;amp;pane=issue&amp;amp;itemId=250030417&amp;amp;issue=kubernetes%7Cenhancements%7C4006" rel="noopener noreferrer"&gt;#4006&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;SIG:&lt;/strong&gt; sig-api-machinery&lt;br&gt;
&lt;strong&gt;Status:&lt;/strong&gt; Graduating to Stable&lt;/p&gt;

&lt;p&gt;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 &lt;code&gt;SPDY/3.1&lt;/code&gt; protocol with &lt;strong&gt;WebSockets&lt;/strong&gt;. This &lt;strong&gt;&lt;a href="https://kubernetes.io/blog/2024/08/20/websockets-transition/" rel="noopener noreferrer"&gt;process began in Kubernetes 1.31&lt;/a&gt;&lt;/strong&gt;. Commands such as &lt;code&gt;kubectl exec&lt;/code&gt;, &lt;code&gt;kubectl attach&lt;/code&gt;, &lt;code&gt;kubectl cp&lt;/code&gt; and &lt;code&gt;kubectl port-forward&lt;/code&gt; 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.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;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 &lt;code&gt;kubectl exec&lt;/code&gt; and &lt;code&gt;kubectl port-forward&lt;/code&gt; 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.&lt;/p&gt;
&lt;h2&gt;
  
  
  Pod-level Resource Specifications
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;KEP:&lt;/strong&gt; &lt;a href="https://github.com/orgs/kubernetes/projects/269/views/1?filterQuery=-is%3Adraft+-status%3ADeferred%2C%22Removed+from+Milestone%22+-enhancement-type%3ADocs+enhancement-type%3AGraduating+stage%3AStable&amp;amp;pane=issue&amp;amp;itemId=243392256&amp;amp;issue=kubernetes%7Cenhancements%7C2837" rel="noopener noreferrer"&gt;#2837&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;SIG:&lt;/strong&gt; sig-node&lt;br&gt;
&lt;strong&gt;Status:&lt;/strong&gt; Graduating to Stable&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;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 &lt;strong&gt;&lt;a href="https://kubernetes.io/docs/concepts/workloads/autoscaling/vertical-pod-autoscale/" rel="noopener noreferrer"&gt;VPA&lt;/a&gt;&lt;/strong&gt;. The initial scope was limited to CPU, memory and Hugepages, so resources such as GPUs, storage and network bandwidth were not included. &lt;/p&gt;

&lt;p&gt;It is also worth distinguishing this capability from &lt;strong&gt;Burstable Pods&lt;/strong&gt; 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.&lt;/p&gt;
&lt;h2&gt;
  
  
  Migrate mixin project from Kubernetes Monitoring to the SIGs org
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;KEP:&lt;/strong&gt; &lt;a href="https://github.com/orgs/kubernetes/projects/269/views/1?filterQuery=-is%3Adraft+-status%3ADeferred%2C%22Removed+from+Milestone%22+-enhancement-type%3ADocs+enhancement-type%3AGraduating+stage%3AStable&amp;amp;pane=issue&amp;amp;itemId=245680046&amp;amp;issue=kubernetes%7Cenhancements%7C5905" rel="noopener noreferrer"&gt;#5905&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;SIG:&lt;/strong&gt; sig-instrumentation&lt;br&gt;
&lt;strong&gt;Status:&lt;/strong&gt; Graduating to Stable&lt;/p&gt;

&lt;p&gt;This change was as the title suggests, purely to migrate the &lt;code&gt;kubernetes-mixin&lt;/code&gt; repo from the &lt;code&gt;kubernetes-monitoring&lt;/code&gt; GitHub organisation to &lt;code&gt;kubernetes-sigs&lt;/code&gt;. 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.&lt;/p&gt;
&lt;h2&gt;
  
  
  Explicitly Indicating Future Conformance Tests
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;KEP:&lt;/strong&gt; &lt;a href="https://github.com/orgs/kubernetes/projects/269/views/1?filterQuery=-is%3Adraft+-status%3ADeferred%2C%22Removed+from+Milestone%22+-enhancement-type%3ADocs+enhancement-type%3AGraduating+stage%3AStable&amp;amp;pane=issue&amp;amp;itemId=250030810&amp;amp;issue=kubernetes%7Cenhancements%7C5922" rel="noopener noreferrer"&gt;#5922&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;SIG:&lt;/strong&gt; sig-architecture&lt;br&gt;
&lt;strong&gt;Status:&lt;/strong&gt; Graduating to Stable&lt;/p&gt;

&lt;p&gt;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 &lt;code&gt;[FutureConformance]&lt;/code&gt; test label, allowing upcoming requirements to be clearly identified ahead of a specified Kubernetes release.&lt;/p&gt;

&lt;p&gt;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 &lt;code&gt;[Conformance]&lt;/code&gt;. Tools such as &lt;strong&gt;&lt;a href="https://sonobuoy.io/" rel="noopener noreferrer"&gt;Sonobuoy&lt;/a&gt;&lt;/strong&gt; and &lt;strong&gt;&lt;a href="https://github.com/kubernetes-sigs/hydrophone" rel="noopener noreferrer"&gt;Hydrophone&lt;/a&gt;&lt;/strong&gt; 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.&lt;/p&gt;
&lt;h2&gt;
  
  
  IP/CIDR Validation Improvements
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;KEP:&lt;/strong&gt; &lt;a href="https://github.com/orgs/kubernetes/projects/269/views/1?filterQuery=-is%3Adraft+-status%3ADeferred%2C%22Removed+from+Milestone%22+-enhancement-type%3ADocs+enhancement-type%3AGraduating+stage%3AStable&amp;amp;pane=issue&amp;amp;itemId=243392311&amp;amp;issue=kubernetes%7Cenhancements%7C4858" rel="noopener noreferrer"&gt;#4858&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;SIG:&lt;/strong&gt; sig-network&lt;br&gt;
&lt;strong&gt;Status:&lt;/strong&gt; Graduating to Stable&lt;/p&gt;

&lt;p&gt;This enhancement makes Kubernetes check IP addresses and CIDR strings in API fields more strictly. Until 1.38, validation accepted anything Go's &lt;code&gt;net.ParseIP&lt;/code&gt; and &lt;code&gt;net.ParseCIDR&lt;/code&gt; would parse, including forms that different software can read in different ways. That gap was the root of &lt;strong&gt;&lt;a href="https://www.rapid7.com/db/vulnerabilities/cve-2021-29923/" rel="noopener noreferrer"&gt;CVE-2021-29923&lt;/a&gt;&lt;/strong&gt;, 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 &lt;code&gt;012.000.001.002&lt;/code&gt; means &lt;code&gt;12.0.1.2&lt;/code&gt; to one and &lt;code&gt;10.0.1.2&lt;/code&gt; to the other. &lt;/p&gt;

&lt;p&gt;It also rejects the IPv4-mapped IPv6 addresses like &lt;code&gt;::ffff:1.2.3.4&lt;/code&gt;, which are rarely used and mostly cause confusion. It also rejects IPv6 zone identifiers such as &lt;code&gt;%eth0&lt;/code&gt;, which &lt;strong&gt;no Kubernetes object needs&lt;/strong&gt;. Subnet-style CIDRs and interface address CIDRs now have separate validators, so a value like &lt;code&gt;192.168.1.5/24&lt;/code&gt; 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.&lt;/p&gt;

&lt;p&gt;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 &lt;code&gt;172.030.099.099&lt;/code&gt;. &lt;/p&gt;

&lt;p&gt;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 &lt;code&gt;LoadBalancerSourceRanges&lt;/code&gt;, are ultimately out of scope as well.&lt;/p&gt;
&lt;h2&gt;
  
  
  Pod-Level Resources support with In-Place Pod Vertical Scaling
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;KEP:&lt;/strong&gt; &lt;a href="https://github.com/orgs/kubernetes/projects/269/views/1?filterQuery=-is%3Adraft+-status%3ADeferred%2C%22Removed+from+Milestone%22+-enhancement-type%3ADocs+enhancement-type%3AGraduating+stage%3AStable&amp;amp;pane=issue&amp;amp;itemId=243392349&amp;amp;issue=kubernetes%7Cenhancements%7C5419" rel="noopener noreferrer"&gt;#5419&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;SIG:&lt;/strong&gt; sig-node&lt;br&gt;
&lt;strong&gt;Status:&lt;/strong&gt; Graduating to Stable&lt;/p&gt;

&lt;p&gt;This 1.38 release finally manages to extend In-Place Pod Resizing (&lt;strong&gt;&lt;a href="https://kubernetes.io/blog/2025/05/16/kubernetes-v1-33-in-place-pod-resize-beta/" rel="noopener noreferrer"&gt;graduated to beta in 1.33&lt;/a&gt;&lt;/strong&gt;) so you can now change pod-level CPU and memory requests and limits on a running pod without recreating it. &lt;/p&gt;

&lt;p&gt;Pod-level resources were introduced by &lt;strong&gt;&lt;a href="https://github.com/orgs/kubernetes/projects/269/views/1?filterQuery=-is%3Adraft+-status%3ADeferred%2C%22Removed+from+Milestone%22+-enhancement-type%3ADocs+enhancement-type%3AGraduating+stage%3AStable&amp;amp;pane=issue&amp;amp;itemId=243392256&amp;amp;issue=kubernetes%7Cenhancements%7C2837" rel="noopener noreferrer"&gt;KEP-2837&lt;/a&gt;&lt;/strong&gt;, 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, &lt;code&gt;PodStatus&lt;/code&gt; gains the pod-level &lt;code&gt;Resources&lt;/code&gt; and &lt;code&gt;AllocatedResources&lt;/code&gt; fields that mirror the existing container-level ones, while &lt;code&gt;Pod.Spec.Resources&lt;/code&gt; becomes the desired state. &lt;/p&gt;

&lt;p&gt;The feature previously sat behind an opt-in &lt;code&gt;InPlacePodLevelResourcesVerticalScaling&lt;/code&gt; gate that was made alpha since v1.34. It also needed the &lt;code&gt;PodLevelResources&lt;/code&gt; and &lt;code&gt;InPlacePodVerticalScaling&lt;/code&gt; gates, and it only works on &lt;code&gt;cgroupv2&lt;/code&gt; nodes. There was no pod-level resize policy, so each container's own &lt;code&gt;resizePolicy&lt;/code&gt; apparently had to decide whether it restarts, with &lt;code&gt;PreferNoRestart&lt;/code&gt; as the default option. This also meant a pod-level resize restarts only containers whose effective limits were actually changed.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;apiVersion&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;v1&lt;/span&gt;
&lt;span class="na"&gt;kind&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Pod&lt;/span&gt;
&lt;span class="na"&gt;metadata&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;pod-level-resources&lt;/span&gt;
&lt;span class="na"&gt;spec&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;resources&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;requests&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;cpu&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;100m&lt;/span&gt;
      &lt;span class="na"&gt;memory&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;100Mi&lt;/span&gt;
    &lt;span class="na"&gt;limits&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;cpu&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;200m&lt;/span&gt;
      &lt;span class="na"&gt;memory&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;200Mi&lt;/span&gt;
  &lt;span class="na"&gt;containers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;c1&lt;/span&gt;
      &lt;span class="na"&gt;image&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;registry.k8s.io/pause:latest&lt;/span&gt;
      &lt;span class="na"&gt;resizePolicy&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;resourceName&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"cpu"&lt;/span&gt;
          &lt;span class="na"&gt;restartPolicy&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"NotRequired"&lt;/span&gt;
        &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;resourceName&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"memory"&lt;/span&gt;
          &lt;span class="na"&gt;restartPolicy&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"RestartRequired"&lt;/span&gt;
    &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;c2&lt;/span&gt;
      &lt;span class="na"&gt;image&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;registry.k8s.io/pause:latest&lt;/span&gt;
      &lt;span class="na"&gt;resources&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="na"&gt;requests&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
          &lt;span class="na"&gt;cpu&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;50m&lt;/span&gt;
          &lt;span class="na"&gt;memory&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;50Mi&lt;/span&gt;
        &lt;span class="na"&gt;limits&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
          &lt;span class="na"&gt;cpu&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;100m&lt;/span&gt;
          &lt;span class="na"&gt;memory&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;100Mi&lt;/span&gt;
      &lt;span class="na"&gt;resizePolicy&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;resourceName&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"cpu"&lt;/span&gt;
          &lt;span class="na"&gt;restartPolicy&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"NotRequired"&lt;/span&gt;
        &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;resourceName&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"memory"&lt;/span&gt;
          &lt;span class="na"&gt;restartPolicy&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"RestartRequired"&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Separate kubectl user preferences from cluster configs
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;KEP:&lt;/strong&gt; &lt;a href="https://github.com/orgs/kubernetes/projects/269/views/1?filterQuery=-is%3Adraft+-status%3ADeferred%2C%22Removed+from+Milestone%22+-enhancement-type%3ADocs+enhancement-type%3AGraduating+stage%3AStable&amp;amp;pane=issue&amp;amp;itemId=245468490&amp;amp;issue=kubernetes%7Cenhancements%7C3104" rel="noopener noreferrer"&gt;#3104&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;SIG:&lt;/strong&gt; sig-cli&lt;br&gt;
&lt;strong&gt;Status:&lt;/strong&gt; Graduating to Stable&lt;/p&gt;

&lt;p&gt;Kubernetes 1.38 is adding an optional, versioned &lt;code&gt;kuberc&lt;/code&gt; file for &lt;code&gt;kubectl&lt;/code&gt;. This would be kept separate from the &lt;code&gt;kubeconfig&lt;/code&gt; 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. &lt;/p&gt;

&lt;p&gt;kubeconfig already has a &lt;code&gt;preferences&lt;/code&gt; 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 &lt;code&gt;--kubeconfig&lt;/code&gt; flag or &lt;code&gt;$KUBECONFIG&lt;/code&gt; path is in use. &lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;The file would therefore live at &lt;code&gt;~/.kube/kuberc&lt;/code&gt; by default. You can point to a different file with the &lt;code&gt;--kuberc&lt;/code&gt; flag or the &lt;code&gt;KUBERC&lt;/code&gt; environment variable, and setting &lt;code&gt;KUBERC=off&lt;/code&gt; turns the feature off. &lt;br&gt;
In beta it's on by default, and &lt;code&gt;KUBECTL_KUBERC=false&lt;/code&gt; disables it. It has 4 top-level sections:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;aliases&lt;/code&gt; define custom commands with preset arguments and options.
They can't override built-in commands, but they take priority over plugins.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;defaults&lt;/code&gt; set default flag values. Like &lt;code&gt;--server-side&lt;/code&gt; (&lt;strong&gt;apply&lt;/strong&gt;) or &lt;code&gt;--interactive&lt;/code&gt; (&lt;strong&gt;delete&lt;/strong&gt;). 
Flags typed on the command line still override them.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;credentialPluginPolicy&lt;/code&gt; and &lt;code&gt;credentialPluginAllowlist&lt;/code&gt; let users allow, deny or allowlist the client-go credential plugin binaries kubectl may run, to block untrusted executables.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;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 &lt;code&gt;kubectl kuberc&lt;/code&gt; command with subcommands for editing it. They follow the same file priority system whereby the &lt;code&gt;--kuberc&lt;/code&gt; flag is used first, then &lt;code&gt;KUBERC&lt;/code&gt;, then the default path.&lt;/p&gt;

&lt;h2&gt;
  
  
  Allow informers for getting a stream of data instead of chunking
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;KEP:&lt;/strong&gt; &lt;a href="https://github.com/orgs/kubernetes/projects/269/views/1?filterQuery=-is%3Adraft+-status%3ADeferred%2C%22Removed+from+Milestone%22+-enhancement-type%3ADocs+enhancement-type%3AGraduating+stage%3AStable&amp;amp;pane=issue&amp;amp;itemId=250030388&amp;amp;issue=kubernetes%7Cenhancements%7C3157" rel="noopener noreferrer"&gt;#3157&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;SIG:&lt;/strong&gt; sig-api-machinery&lt;br&gt;
&lt;strong&gt;Status:&lt;/strong&gt; Graduating to Stable&lt;/p&gt;

&lt;p&gt;Finally, this last KEP changes how informers fetch their initial list of objects from &lt;code&gt;kube-apiserver&lt;/code&gt;. Until this release, informers would send LIST requests, and the server answers them by paging data from etcd. &lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;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. &lt;/p&gt;

&lt;p&gt;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 &lt;strong&gt;RV="0"&lt;/strong&gt; 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.&lt;/p&gt;

</description>
      <category>kubernetes</category>
      <category>ai</category>
      <category>cloudnative</category>
      <category>edera</category>
    </item>
  </channel>
</rss>
