NAME
IO::K8s::Api::Autoscaling::V2::HPAScalingRules - HPAScalingRules configures the scaling behavior for one direction. These Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen.
VERSION
version 1.105
policies
policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid
selectPolicy
selectPolicy is used to specify which policy should be used. If not set, the default value Max is used.
stabilizationWindowSeconds
stabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long).
tolerance
tolerance is the tolerance on the ratio between the current and desired metric value under which no additional scaling is performed. If not set, the default cluster-wide tolerance is applied (by default 10%).
For example, if autoscaling is triggered by consecutive (in a row) metric values, that violate the tolerance and this is configured to 0.1, this means that we will start scaling up/down only when the ratio of desired metric value to the current metric value is more than 1.1 or less than 0.9 respectively.
This is a beta field and requires enabling the HPAConfigurableTolerance feature gate.
SUPPORT
Issues
Please report bugs and feature requests on GitHub at https://github.com/pplu/io-k8s-p5/issues.
IRC
Join #kubernetes on irc.perl.org or message Getty directly.
CONTRIBUTING
Contributions are welcome! Please fork the repository and submit a pull request.
AUTHORS
Torsten Raudssus <torsten@raudssus.de>
Jose Luis Martinez Torres <jlmartin@cpan.org>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2018-2026 by Jose Luis Martinez Torres <jlmartin@cpan.org>.
This is free software, licensed under:
The Apache License, Version 2.0, January 2004