struct

Kubernetes::HorizontalPodAutoscalerBehavior

Inherits YAML::Serializable < JSON::Serializable < Kubernetes::Serializable < Struct < Value < Object

HorizontalPodAutoscalerBehavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively).

Constructors

new(pull : ::JSON::PullParser)
new(*, __pull_for_json_serializable pull : ::JSON::PullParser)
new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)

Instance methods

scale_down

scaleDown is scaling policy for scaling Down. If not set, the default value is to allow to scale down to minReplicas pods, with a 300 second stabilization window (i.e., the highest recommendation for the last 300sec is used).

Source
scale_down=(scale_down : HPAScalingRules | Nil)

scaleDown is scaling policy for scaling Down. If not set, the default value is to allow to scale down to minReplicas pods, with a 300 second stabilization window (i.e., the highest recommendation for the last 300sec is used).

Source
scale_up

scaleUp is scaling policy for scaling Up. If not set, the default value is the higher of:

  • increase no more than 4 pods per 60 seconds
  • double the number of pods per 60 seconds No stabilization is used.
Source
scale_up=(scale_up : HPAScalingRules | Nil)

scaleUp is scaling policy for scaling Up. If not set, the default value is the higher of:

  • increase no more than 4 pods per 60 seconds
  • double the number of pods per 60 seconds No stabilization is used.
Source

Macros

field(name, type = nil, **options, &block)

Helper macro for defining fields with automatic camelCase conversion

Source