Attune: Automatic Kubernetes Pod Resizing Without RestartsArticle · digest for October 17
Stylized blueprint diagram of dynamic Kubernetes In-Place Pod Resize showing an 8% CPU utilization gauge.
Article1 section≈ 3 min

Attune: Automatic Kubernetes Pod Resizing Without Restarts

Every infrastructure engineer knows the Kubernetes resource-sizing paradox. Developers play it safe and request 4 CPU cores and 8 GB of RAM, even though the service uses maybe 300 millicores 99% of the time. A 2026 CAST AI report highlighted a stark number: real average CPU utilization across clusters is just 8%, and over 70% of companies cite overprovisioning as their biggest budget drain.

In theory, Vertical Pod Autoscaler (VPA) should fix this. In practice, fewer than 1% of teams enable it in production. Why? Because changing a container's requests and limits forces classic VPA to kill the pod and recreate it. For busy services holding millions of WebSockets or long-lived sessions, that kind of "autoscaling" triggers a cascading outage.

The open-source Attune operator (Apache-2.0) solves this core problem by building on a milestone feature in Kubernetes 1.35: General Availability (GA) for In-Place Pod Resize.

How Zero-Downtime Resizing Works

Attune removes pod evictions from resource optimization. Instead of recreating pods, the operator calls the /resize subresource in the Kubernetes API. The container runtime (containerd 2.0+ or CRI-O) updates Linux cgroups v2 in milliseconds. CPU and memory boundaries expand or shrink on the fly, and the app inside never notices a thing.

Around this low-level primitive, the Attune team built a safe automation loop:

  1. Canary rollouts: The operator never updates an entire deployment at once. Only 10–25% of replicas receive the new limits first.
  2. PromQL SLO guardrails: Attune continuously queries Prometheus or VictoriaMetrics. If trimming CPU causes p99 latency or 5xx errors to spike on canary pods, it immediately reverts to the previous limits. We saw a similar metric-driven approach in Ballast: Automated Kubernetes Limit Tuning Based on Prometheus Metrics.
  3. HPA compatibility: Unlike standard VPA, which clashes with the Horizontal Pod Autoscaler, Attune adjusts baseline requests smoothly so horizontal scaling keeps working during traffic spikes.

You install the operator via Helm as usual:

helm repo add attune https://charts.attune.io
helm repo update
helm install attune attune/attune --namespace attune-system --create-namespace

An AttunePolicy manifest defines the target deployment, resource bounds, and rollback rules:

apiVersion: autoscaling.attune.io/v1alpha1
kind: AttunePolicy
metadata:
  name: api-service-sizing
  namespace: production
spec:
  targetRef:
    apiVersion: apps/v1
    kind: Deployment
    name: core-api
  mode: "InPlace"
  canary:
    fraction: 0.20
    evaluationPeriod: "5m"
  sloGuardrail:
    promql: "sum(rate(http_requests_total{status=~'5..'}[2m])) / sum(rate(http_requests_total[2m])) > 0.01"
    revertOnBreach: true
  limits:
    cpu:
      min: "200m"
      max: "4000m"
    memory:
      min: "512Mi"
      max: "8Gi"
Startup Boost Mode for JVM and Node.js

For apps with heavy startup phases (like Java JIT compilation or Node.js module warm-up), Attune supports Startup Boost. It temporarily grants extra CPU at launch, then smoothly scales limits back down to normal operating levels.

With Kubernetes 1.35 and Attune, the era of static manifests with 5x inflated quotas is finally coming to an end.

Want a deep diveVotes help us choose what to break down in detail. This material has 0 votes.
Sources · 2