class K8S::Api::Autoscaling::V2::HPAScalingRules
- K8S::Api::Autoscaling::V2::HPAScalingRules
- Reference
- Object
Overview
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.
Included Modules
- JSON::Serializable
- YAML::Serializable
Defined in:
versions/v1.23/api/autoscaling/v2/hpa_scaling_rules.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(pull : JSON::PullParser)
- .new(*, policies : Array? = nil, select_policy : String? = nil, stabilization_window_seconds : Int32? = nil)
Instance Method Summary
- #policies : Array(Api::Autoscaling::V2::HPAScalingPolicy)?
- #policies=(policies : Array(Api::Autoscaling::V2::HPAScalingPolicy)?)
- #select_policy : String?
- #select_policy=(select_policy : String?)
- #stabilization_window_seconds : Int32?
- #stabilization_window_seconds=(stabilization_window_seconds : Int32?)
Constructor Detail
def self.new(*, policies : Array? = nil, select_policy : String? = nil, stabilization_window_seconds : Int32? = nil)
#