DriversRecommendedOutdated drivers can make a good PC feel brokenScan driver issues before chasing fixes manually.Scan NowOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run Scan×
Skip to content
World desk4 min

How to Configure Kubernetes HPA Scale-Down Policies Safely

Use HPA scale-down stabilization to smooth brief metric dips and rate policies to cap replica removals. Learn how selectPolicy: Min works and what to verify before deployment.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Configure safe HPA scale-down behavior in spec.behavior.scaleDown on an autoscaling/v2 HorizontalPodAutoscaler. Use the stabilization window to smooth brief drops in demand; add a Pods or Percent policy to limit how quickly replicas are removed. If you set both policy types, choose selectPolicy: Min to apply the smaller permitted change. Kubernetes’ default downscale stabilization window is 300 seconds, but the right policy values depend on your workload and available capacity.

Choose the control that matches the risk

Scale-down has two separate controls: a stabilization window and a rate policy. The window helps prevent a temporary metric dip from triggering a premature reduction. A policy caps the number or proportion of replicas the HPA can remove over a period. Configure both if you need smoothing and a firm limit on removal speed.

As an Amazon Associate I earn from qualifying purchases.

  • Use a stabilization window when demand tends to dip briefly and you want the HPA to wait for a sustained lower recommendation.
  • Use a rate policy when you need to bound how many replicas can be removed within a specified period.
  • Use both when a brief dip should not cause a fast reduction and you also need a maximum rate of reduction.

Kubernetes documents configurable HPA scaling behavior as stable since v1.23, and autoscaling/v2 is the stable API version. See the Kubernetes HPA task guide and HPA concepts documentation.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Set a stabilization window

The downscale stabilization window is history-based smoothing. When considering a lower replica count, the HPA looks at recommendations during the configured interval and uses the highest recommendation in that history. This helps avoid reacting to a short-lived metric drop. Kubernetes describes its purpose as restricting replica-count flapping when scaling metrics fluctuate.

#1 Best Overall

The default window is 300 seconds (five minutes). The API accepts values from 0 through 3600 seconds; setting it to zero removes this smoothing. A longer window may suit workloads with recurring short dips or slow capacity recovery. A shorter window is appropriate only if the workload can safely shed capacity quickly and the cost and latency trade-offs are acceptable. Kubernetes does not prescribe a universal workload-specific window.

Limit the scale-down rate

Rate policies constrain replica changes over a periodSeconds interval. A Pods policy sets an absolute replica-change limit; a Percent policy sets a proportional limit. Policy values must be positive, and periodSeconds must be greater than zero and no more than 1800 seconds, according to the autoscaling/v2 API reference.

Understand selectPolicy

When multiple policies are configured, the default selectPolicy is Max, which permits the larger replica change among the policies. Set Min when you want the stricter of the listed limits. For example, combining a 10-percent-per-minute policy with a five-pods-per-minute policy and selecting Min makes the HPA follow the smaller change permitted by those policies. The precise number of pods affected by a percentage policy depends on the current replica count.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Illustrative manifest

This example combines the default-length stabilization window with a percentage and an absolute rate cap. The Kubernetes guide documents the same policy mechanisms and example limits; they are illustrative, not a universal production recommendation or a tested configuration.

apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
  name: example
spec:
  # scaleTargetRef, minReplicas, maxReplicas, and metrics omitted
  behavior:
    scaleDown:
      stabilizationWindowSeconds: 300
      selectPolicy: Min
      policies:
      - type: Percent
        value: 10
        periodSeconds: 60
      - type: Pods
        value: 5
        periodSeconds: 60

Size the window and limits using observed traffic patterns, startup and readiness delays, and spare capacity. A policy controls velocity; minReplicas sets the lower bound. Neither setting alone guarantees service safety.

Apply and verify the change

  1. Confirm the HPA uses autoscaling/v2. Inspect the live object and verify minReplicas, maxReplicas, metrics, and behavior.scaleDown before editing.
  2. Set the stabilization window and rate policies in the HPA manifest. Keep only values your workload can support; do not copy example limits without evaluating capacity and traffic behavior.
  3. Apply the updated manifest using your normal cluster deployment process, then inspect the HPA conditions, events, recommendations, and actual replica count during representative load changes.
  4. Check metric values and metric API availability. The HPA chooses the largest desired replica count across metrics. If one metric cannot be converted to a recommendation while another suggests scaling down, Kubernetes may skip the downscale.
  5. Ensure Deployment or StatefulSet manifests do not reapply a fixed spec.replicas value while the HPA manages replicas. Kubernetes advises omitting that field from workload manifests in this situation because applying a fixed count can cause unwanted adjustments or flapping.
  6. Reassess the policy after changes to traffic, metrics, startup or readiness behavior, or workload capacity.

These checks follow the controller behavior described in the Kubernetes HPA concepts documentation; observed outcomes depend on the cluster and workload.

Disable downscaling only when you mean to stop it

selectPolicy: Disabled disables scaling in the configured direction. It can serve as a temporary operational control, but the HPA will not reduce capacity while it remains in effect. If the goal is slower rather than zero downscaling, a bounded policy is generally more suitable. The behavior guide documents Disabled alongside the other selection options.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Keep scale-to-zero separate from ordinary downscale tuning

Kubernetes v1.37 documents scale-to-zero as beta for suitable HPAs using object or external metrics, not CPU or memory resource metrics. The official announcement, dated September 2, 2026, says the feature gate is enabled by default; verify the exact cluster release and control-plane configuration before relying on it. See the Kubernetes v1.37 scale-to-zero announcement.

A workload manually set to zero is not equivalent to one automatically scaled to zero: Kubernetes preserves the distinction so a manual zero can pause HPA reconciliation. Do not assume a manually zeroed workload will automatically wake in the same way as one managed by scale-to-zero behavior.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.