Class HPAScalingRules

  • All Implemented Interfaces:
    io.fabric8.kubernetes.api.builder.Editable<HPAScalingRulesBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource, Serializable

    @Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator")
    public class HPAScalingRules
    extends Object
    implements io.fabric8.kubernetes.api.builder.Editable<HPAScalingRulesBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
    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.
    See Also:
    Serialized Form
    • Constructor Detail

      • HPAScalingRules

        public HPAScalingRules()
        No args constructor for use in serialization
    • Method Detail

      • getPolicies

        public List<HPAScalingPolicy> getPolicies()
        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
      • setPolicies

        public void setPolicies​(List<HPAScalingPolicy> 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
      • getSelectPolicy

        public String getSelectPolicy()
        selectPolicy is used to specify which policy should be used. If not set, the default value Max is used.
      • setSelectPolicy

        public void setSelectPolicy​(String selectPolicy)
        selectPolicy is used to specify which policy should be used. If not set, the default value Max is used.
      • getStabilizationWindowSeconds

        public Integer getStabilizationWindowSeconds()
        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).
      • setStabilizationWindowSeconds

        public void setStabilizationWindowSeconds​(Integer 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).
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)