@@ -475,7 +475,9 @@ spec:
475475 policies :
476476 description : |-
477477 policies is a list of potential scaling polices which can be used during scaling.
478- At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid
478+ If not set, use the default values:
479+ - For scale up: allow doubling the number of pods, or an absolute change of 4 pods in a 15s window.
480+ - For scale down: allow all pods to be removed in a 15s window.
479481 items :
480482 description : HPAScalingPolicy is a single policy which must hold true for a specified past interval.
481483 properties :
@@ -516,6 +518,24 @@ spec:
516518 - For scale down: 300 (i.e. the stabilization window is 300 seconds long).
517519 format : int32
518520 type : integer
521+ tolerance :
522+ anyOf :
523+ - type : integer
524+ - type : string
525+ description : |-
526+ tolerance is the tolerance on the ratio between the current and desired
527+ metric value under which no updates are made to the desired number of
528+ replicas (e.g. 0.01 for 1%). Must be greater than or equal to zero. If not
529+ set, the default cluster-wide tolerance is applied (by default 10%).
530+
531+ For example, if autoscaling is configured with a memory consumption target of 100Mi,
532+ and scale-down and scale-up tolerances of 5% and 1% respectively, scaling will be
533+ triggered when the actual consumption falls below 95Mi or exceeds 101Mi.
534+
535+ This is an alpha field and requires enabling the HPAConfigurableTolerance
536+ feature gate.
537+ pattern : ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
538+ x-kubernetes-int-or-string : true
519539 type : object
520540 scaleUp :
521541 description : |-
@@ -528,7 +548,9 @@ spec:
528548 policies :
529549 description : |-
530550 policies is a list of potential scaling polices which can be used during scaling.
531- At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid
551+ If not set, use the default values:
552+ - For scale up: allow doubling the number of pods, or an absolute change of 4 pods in a 15s window.
553+ - For scale down: allow all pods to be removed in a 15s window.
532554 items :
533555 description : HPAScalingPolicy is a single policy which must hold true for a specified past interval.
534556 properties :
@@ -569,6 +591,24 @@ spec:
569591 - For scale down: 300 (i.e. the stabilization window is 300 seconds long).
570592 format : int32
571593 type : integer
594+ tolerance :
595+ anyOf :
596+ - type : integer
597+ - type : string
598+ description : |-
599+ tolerance is the tolerance on the ratio between the current and desired
600+ metric value under which no updates are made to the desired number of
601+ replicas (e.g. 0.01 for 1%). Must be greater than or equal to zero. If not
602+ set, the default cluster-wide tolerance is applied (by default 10%).
603+
604+ For example, if autoscaling is configured with a memory consumption target of 100Mi,
605+ and scale-down and scale-up tolerances of 5% and 1% respectively, scaling will be
606+ triggered when the actual consumption falls below 95Mi or exceeds 101Mi.
607+
608+ This is an alpha field and requires enabling the HPAConfigurableTolerance
609+ feature gate.
610+ pattern : ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
611+ x-kubernetes-int-or-string : true
572612 type : object
573613 type : object
574614 maxReplicas :
@@ -1539,7 +1579,7 @@ spec:
15391579 type : array
15401580 operationResults :
15411581 additionalProperties :
1542- description : OperationResult is the action result of a CreateOrUpdate call.
1582+ description : OperationResult is the action result of a CreateOrUpdate or CreateOrPatch call.
15431583 type : string
15441584 description : The result of creating or updating of each derived resource for this Atom.
15451585 type : object
0 commit comments