TL;DR
Kubernetes 1.35 makes CPU and memory on a running Pod mutable. Learn how in-place resize works, what still restarts, and when VPA should do the resizing instead.
For most of Kubernetes' history, a Pod's CPU and memory were set in stone the moment the Pod was created. If a service needed more memory at 2 a.m., the only honest answer was to delete the Pod and let the controller make a new one — with a new IP, dropped connections, cold caches, and a brief window where the workload simply was not there. Teams learned to over-provision instead, paying for headroom they rarely used, because the alternative was a restart at the worst possible time.
Kubernetes 1.35, released December 17, 2025 under the name "Timbernetes", changes that. In-place Pod resize (KEP-1287) graduated to general availability in 1.35 after an alpha in 1.27 and a beta in 1.33, and it makes CPU and memory requests and limits on a running Pod mutable. You adjust the numbers, the kubelet applies them to the live container, and the Pod keeps its identity: same Pod object, same IP, same volume mounts. This article explains how it works, where the sharp edges still are, and when you should let an autoscaler do the resizing instead of doing it by hand. The Kubernetes 1.35 release announcement is the primary source for the version and date claims here.
Why resizing a Pod used to mean a restart
The immutability was not an accident. When a Pod is created, the scheduler uses its resource requests to pick a node with enough free capacity, and the kubelet configures the container runtime's control groups from its limits. Changing those numbers after the fact would have meant re-running placement and re-configuring the runtime, so the API simply rejected it: the resources field was immutable, and the documented path to a bigger Pod was a new Pod.
That constraint shaped how teams operated. A service that grew into its memory limit had two options, both bad at 2 a.m.: roll the Deployment and accept the disruption, or leave the limit alone and hope the next traffic spike did not trigger an OOM-kill. The workaround most teams settled on was over-provisioning — requests set generously high so the Pod rarely needed to change. It worked, in the sense that nothing restarted, but it wasted capacity across the whole cluster and made bin-packing worse, because the scheduler reserves what you ask for whether you use it or not.
The cost was not only money. Restarts break things that do not show up in a resource graph: in-flight requests get cut, connection pools reset, local caches go cold, and stateful workloads such as databases or stream processors lose their warm state. A restart is cheap for a stateless web tier behind a load balancer; it is expensive for the one Pod holding a leader election or a long-running job. Understanding which side of that line a workload sits on is the whole decision, and it is why the resize story is more than a convenience feature. If the control plane and kubelet roles in this picture are fuzzy, the walkthrough of Kubernetes architecture explained covers how the API server, scheduler, and kubelet divide the work.
How in-place resize works
The mechanism is deliberately small. In Kubernetes 1.35, the container resources field in a Pod spec is no longer the frozen truth — it is the desired state. You declare what you want, and a new status field reports what is actually applied. The API server accepts the change through a dedicated resize subresource, the kubelet notices the difference between desired and actual, and the container runtime adjusts the control groups underneath the running container. Nothing is deleted. Nothing is recreated. The Pod object you patched is the Pod that keeps running.
The trigger is a patch against the subresource:
kubectl patch pod api-server-7d9f4 --subresource resize \
--patch '{"spec":{"containers":[{"name":"api","resources":{"requests":{"cpu":"500m","memory":"512Mi"},"limits":{"cpu":"2","memory":"1Gi"}}}]}}'The values above are illustrative — substitute the container name and numbers for your own workload. The important part is --subresource resize. A plain patch to the Pod spec would still be rejected; the subresource is what tells the API server this is a resize request, and it is the only path that can change resources on a live Pod.
Two fields carry the state. spec.containers resources are what you asked for, and status.containerStatuses resources show what the kubelet has actually applied. When a resize is deferred — because the node cannot satisfy it right now, for example — the two disagree, and that disagreement is visible in the Pod status rather than hidden in a controller log. New kubelet metrics and Pod events for resize observability landed in 1.35, so a deferred or failed resize is something you can alert on instead of discovering later.
resizePolicy: decide at creation what may change live
Not every resource change can be applied to a running container, and resizePolicy is where you declare the intent per resource. Each entry pairs a resource name with a restart policy:
spec:
containers:
- name: api
image: my-registry/api:1.4.2
resources:
requests:
cpu: "500m"
memory: "512Mi"
limits:
cpu: "2"
memory: "1Gi"
resizePolicy:
- resourceName: cpu
restartPolicy: NotRequired
- resourceName: memory
restartPolicy: RestartContainerThe two values mean what they say. NotRequired applies the change live with no restart; RestartContainer recreates the container inside the same Pod, so the Pod object, IP, and volumes survive but the process restarts. The default for CPU is NotRequired, which matches reality: CPU limits are enforced through control-group shares and quotas, which the runtime can adjust on a live container without touching the process.
The constraint that catches teams out is timing. resizePolicy must be set at Pod creation, or in the owner template that creates the Pod — a Deployment, StatefulSet, or Job spec. It cannot be added later through the resize subresource. If your existing Deployments were written before 1.35 and carry no resizePolicy, the first resize attempt will tell you so, and the fix is a template change followed by a rollout of new Pods. That is a one-time migration cost, and it is worth doing deliberately: decide per workload whether a memory resize should restart its container, because the wrong default for a stateful process is worse than no resize at all.
What went GA in 1.35 — and what still restarts
The jump from beta in 1.33 to stable in 1.35 is narrower than the headline suggests, and the details matter more than the version number. The headline change is that memory limit decreases are now permitted. In beta, the API server rejected them outright, because shrinking a memory limit below a container's current usage invites an immediate OOM-kill. In 1.35 the kubelet performs a best-effort check that current usage sits below the new limit before applying the decrease — but the check is best-effort, not guaranteed. Usage can climb between the check and the apply, and a container that crosses its new limit gets OOM-killed like any other. Treat a memory decrease as a planned operation with monitoring attached, not as a safe dial you can turn down casually.
Deferred resizes also got a defined retry order in 1.35. When a resize cannot be applied immediately, the kubelet retries by priority: PriorityClass first, then QoS class, then duration deferred, with older deferred resizes before newer ones. In practice this means a high-priority Pod's resize is more likely to land promptly when node capacity frees up, while a best-effort Pod waits. If your resize seems stuck, check the Pod events and the kubelet metrics before assuming the feature is broken — the request may simply be queued behind higher-priority work.
Two things that are easy to misread deserve a clear statement. First, Pod-level resources resize is a separate alpha track in 1.35 under KEP-5419, behind its own feature gate. It is not part of the GA feature, and nothing in this article applies to it. Second, cgroup v2 is the default in 1.35 and later, and it is the mechanism the resize path relies on for live enforcement. On 1.35 and above, the InPlacePodVerticalScaling feature gate is locked on and cannot be disabled — there is no supported way to turn the feature off cluster-wide, so your platform team should treat resize as part of the cluster's behavior, not an opt-in experiment. The in-place Pod resize GA announcement documents the beta-to-GA changes and the observability additions.
The hard limits are unchanged from beta. Only CPU and memory are resizable — no other resource type, and no GPU. The QoS class of a Pod is determined at creation and is immutable, so a resize that would change the Pod's QoS class is rejected by the API server. That rejection is a feature, not a bug: QoS drives eviction order, and silently changing it would reorder which Pods get evicted under pressure. If a resize is rejected, the fix is usually a new Pod with the intended requests and limits, which is exactly the old path — the feature removes the restart for the common case, not for every case.
Architecture decision: resize in place or roll the Pod
Decision
Use in-place resize as the first response to CPU and memory pressure on long-running Pods, and keep rolling updates for everything else — image changes, configuration changes, and any resize that would change QoS.
Context
Our Pods run on Kubernetes 1.35 with cgroup v2, and the workloads that hurt most from restarts are the ones with warm state: caches, connection pools, leader-elected controllers, and stream processors. Before 1.35, every resource change was a restart, so teams over-provisioned to avoid the choice entirely. The GA of in-place resize removes the restart for the common case, but it introduces a new failure mode — a resize that is deferred, rejected, or OOM-kills a container — that the old path did not have.
Options considered
First, keep the old behavior: change resources only through a Deployment rollout, accepting restarts as the cost of predictability. Second, resize in place for everything, including memory decreases, and trust the kubelet's best-effort check. Third, resize in place for CPU and for memory increases, and treat memory decreases and QoS-changing resizes as rollouts. Fourth, hand the whole problem to VPA and never resize manually.
Why this one
The third option fits the actual guarantees. CPU resizes are cheap and safe — the default NotRequired policy exists because the runtime can adjust CPU shares live. Memory increases are safe for the same reason: more headroom cannot OOM-kill anything. Memory decreases are the only operation where the kubelet's check is explicitly best-effort, so they deserve the rollout path, where a new Pod starts with the smaller limit and the old one drains normally. QoS-changing resizes are rejected anyway, so the rollout path is the only option there. The fourth option is a good complement, not a replacement: VPA is the right owner for routine right-sizing, but an operator still needs a manual path for incidents.
What it costs you
The template migration is the main cost: every Deployment and StatefulSet needs a resizePolicy before its Pods can be resized, and that is a rollout in itself. You also take on a new observability obligation — deferred resizes are visible in Pod status and kubelet metrics, but only if someone is watching them. And you accept a small amount of new operational knowledge: your on-call runbooks need a section on what a rejected or deferred resize looks like, because the failure mode is unfamiliar.
When to reverse it
If deferred resizes become a regular occurrence, the cluster is too tight for the feature to help — the answer is capacity, not more resize attempts. If a memory decrease OOM-kills a container even once, stop doing manual memory decreases and route them through rollouts. And if your workloads turn out to be mostly stateless web tiers where a restart costs nothing, the simpler rollout-only path is the right one after all; resize in place earns its complexity only where restarts hurt.
VPA and autoscaler integration
In-place resize is most valuable when nobody has to think about it, and that is where the Vertical Pod Autoscaler comes in. VPA's InPlaceOrRecreate update mode uses the resize subresource to adjust a running Pod's resources without eviction, falling back to recreating the Pod only when the resize cannot be applied. For workloads whose usage drifts slowly — a cache that grows with the working set, a worker whose memory footprint tracks queue depth — VPA with in-place updates is a genuine improvement over the old evict-and-recreate cycle, because the Pod keeps serving while its resources change.
The relationship with the Horizontal Pod Autoscaler is complementary rather than competing. HPA scales the number of replicas in response to demand; VPA, with in-place resize, scales the size of each replica. A service that is both replica-scaled and vertically resized needs both autoscalers tuned to different signals, or they will fight: HPA adding replicas while VPA shrinks each one is a common misconfiguration. Keep the two on separate metrics where possible — HPA on request rate or latency, VPA on actual CPU and memory usage — and review the combination in staging before it reaches production.
Node capacity is the other half of the story. A resize that grows a Pod consumes capacity on its node, and if the node is full, the resize defers. When many Pods grow at once, the cluster autoscaler has to add nodes, and the speed at which that happens decides whether the deferred resizes land in seconds or minutes. The comparison of Karpenter vs Cluster Autoscaler covers how the two node-provisioning approaches differ in exactly this situation, and it is worth reading before you rely on resizes during a traffic spike. A resize is only as fast as the capacity behind it.
Old way vs in-place resize vs VPA recreate
The three paths differ in what survives the change, and that is the comparison that matters. A rollout replaces the Pod entirely; an in-place resize keeps everything; VPA with recreate sits in the middle, keeping the Pod's identity in the controller's eyes but still restarting the container.
| Rollout (old way) | In-place resize | VPA recreate | |
|---|---|---|---|
| Pod identity | New Pod, new IP | Same Pod, same IP | New Pod, new IP |
| Container process | Restarted | Kept running (CPU, memory increases) | Restarted |
| Volume mounts | Remounted | Untouched | Remounted |
| Works without resizePolicy | Yes | No — policy must exist at creation | Yes |
| Memory decrease | Safe (new Pod starts small) | Best-effort check, OOM risk | Safe (new Pod starts small) |
| QoS-changing change | Allowed (new Pod) | Rejected by API server | Allowed (new Pod) |
| Automation | CI/CD pipelines | Manual patch, or VPA InPlaceOrRecreate | VPA, fully automatic |
| Best for | Image and config changes | Incident response, hot workloads | Routine right-sizing |
Read the table from the workload's point of view, not the operator's. For a stateless web tier, the rollout column is fine — nothing in it hurts, and the tooling is the most mature. For a Pod with warm state, the middle column is the only one that avoids the cold-cache penalty. And for the steady drift of everyday usage, VPA with in-place updates is the right default, because it removes the human from a decision that should be data-driven anyway. The mistake is to pick one path for the whole cluster; the three coexist, and the per-workload choice is the point.
When NOT to use it
In-place resize is not a universal answer, and the cases where it fails are worth naming plainly. GPU workloads are the clearest exclusion: only CPU and memory are resizable, so a training job that needs more GPU memory has no resize path at all, and the scheduling and resource patterns for those workloads are a different problem — the guide to running AI/ML workloads on Kubernetes covers them. Anything with a strict memory ceiling and no tolerance for OOM-kills should not get manual memory decreases; the best-effort check is honest about what it is, and an OOM-kill at 2 a.m. is a worse outcome than a planned rollout.
Workloads whose resizePolicy was never set cannot be resized until their templates are updated, and that update is itself a rollout — so the first time you need a resize is the worst time to discover the policy is missing. Do the template migration during a planned change window, not during an incident. Pods that are about to be evicted anyway, or that sit on nodes with no spare capacity, will see their resizes deferred; in that situation, scaling out or adding node capacity is the honest fix, and hammering the resize API only adds queued requests.
Finally, do not use manual resize as a substitute for right-sizing. If the same Pod needs a bigger limit every week, the request was wrong, and the fix is a template change or a VPA recommendation — not a standing habit of patching Pods by hand. Manual resize is for incidents and for workloads whose demand genuinely varies; routine growth belongs to automation.
Recommendation
Upgrade to Kubernetes 1.35, or confirm your managed cluster already runs it — both EKS and GKE document in-place Pod resize as GA and stable in 1.35 — and then treat the feature as a platform capability, not a per-incident trick. The rollout order that has worked for teams adopting it is: first, add resizePolicy to your templates during normal release cycles, choosing NotRequired for CPU and deciding per workload whether memory should restart its container; second, wire the new kubelet metrics and Pod events into your existing alerting, so a deferred resize pages someone instead of sitting quietly in Pod status; third, enable VPA in recommendation-only mode to learn what your workloads actually use, and switch the steady ones to InPlaceOrRecreate once the recommendations look sane.
Keep the rollout path for the cases resize cannot handle: memory decreases, QoS changes, image and configuration changes. That split — resize in place for the hot path, rollouts for everything else — is the durable pattern, and it is the one the Architecture Decision box above records. The feature does not remove the need to think about capacity; it removes the restart from the most common resource change, and that is enough to change how you operate at 2 a.m. The next time a service grows into its memory limit, the answer can be a patch, not a restart — provided the template was ready, the metrics were watched, and the decrease, if there is one, goes through a rollout instead.
Why This Matters
Understanding the business and technical context helps you make informed decisions rather than blindly following patterns.
Trade-offs to Consider
Every architectural decision involves trade-offs. Consider your specific requirements, team expertise, and scale when evaluating options.
When NOT to Use This
Knowing when a solution doesn't apply is as valuable as knowing when it does. Consider alternatives for your specific situation.
Decision Framework
Use this framework to evaluate whether this approach is right for your use case based on your specific constraints and requirements.