Skip to content

Commit afa5196

Browse files
authored
Merge pull request #24825 from novas0x2a/patch-1
document HPA's implicit deactivation
2 parents 9072255 + 862482e commit afa5196

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

content/en/docs/tasks/run-application/horizontal-pod-autoscale.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,12 +433,18 @@ behavior:
433433
selectPolicy: Disabled
434434
```
435435

436+
## Implicit maintenance-mode deactivation
436437

438+
You can implicitly deactivate the HPA for a target without the
439+
need to change the HPA configuration itself. If the target's desired replica count
440+
is set to 0, and the HPA's minimum replica count is greater than 0, the HPA
441+
stops adjusting the target (and sets the `ScalingActive` Condition on itself
442+
to `false`) until you reactivate it by manually adjusting the target's desired
443+
replica count or HPA's minimum replica count.
437444

438445
## {{% heading "whatsnext" %}}
439446

440447

441448
* Design documentation: [Horizontal Pod Autoscaling](https://git.k8s.io/community/contributors/design-proposals/autoscaling/horizontal-pod-autoscaler.md).
442449
* kubectl autoscale command: [kubectl autoscale](/docs/reference/generated/kubectl/kubectl-commands/#autoscale).
443450
* Usage example of [Horizontal Pod Autoscaler](/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/).
444-

0 commit comments

Comments
 (0)