Skip to content

Commit 4b96751

Browse files
jm-franck8s-publishing-bot
authored andcommitted
Fix API doc and tolerance field handling when gate is flipped.
Kubernetes-commit: dc1696d8074edacf3e2d3857a5767eed66526386
1 parent 2f57c40 commit 4b96751

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

autoscaling/v2/types.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,10 @@ type HPAScalingRules struct {
211211
// replicas (e.g. 0.01 for 1%). Must be greater than or equal to zero. If not
212212
// set, the default cluster-wide tolerance is applied (by default 10%).
213213
//
214+
// For example, if autoscaling is configured with a memory consumption target of 100Mi,
215+
// and scale-down and scale-up tolerances of 5% and 1% respectively, scaling will be
216+
// triggered when the actual consumption falls below 95Mi or exceeds 101Mi.
217+
//
214218
// This is an alpha field and requires enabling the HPAConfigurableTolerance
215219
// feature gate.
216220
//

0 commit comments

Comments
 (0)