Sha256: 8d8cb39ed363ea09f48c243a15640be70ce22ed79aee7813d1636a0b46ff1cf4

Contents?: true

Size: 1.89 KB

Versions: 1

Compression:

Stored size: 1.89 KB

Contents

# Zilla::IoK8sApiAutoscalingV2beta2HorizontalPodAutoscalerSpec

## Properties

| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **behavior** | [**IoK8sApiAutoscalingV2beta2HorizontalPodAutoscalerBehavior**](IoK8sApiAutoscalingV2beta2HorizontalPodAutoscalerBehavior.md) |  | [optional] |
| **max_replicas** | **Integer** | maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas. |  |
| **metrics** | [**Array<IoK8sApiAutoscalingV2beta2MetricSpec>**](IoK8sApiAutoscalingV2beta2MetricSpec.md) | metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used).  The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods.  Ergo, metrics used must decrease as the pod count is increased, and vice-versa.  See the individual metric source types for more information about how each type of metric must respond. If not set, the default metric will be set to 80% average CPU utilization. | [optional] |
| **min_replicas** | **Integer** | minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down.  It defaults to 1 pod.  minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured.  Scaling is active as long as at least one metric value is available. | [optional] |
| **scale_target_ref** | [**IoK8sApiAutoscalingV2beta2CrossVersionObjectReference**](IoK8sApiAutoscalingV2beta2CrossVersionObjectReference.md) |  |  |

## Example

```ruby
require 'zilla'

instance = Zilla::IoK8sApiAutoscalingV2beta2HorizontalPodAutoscalerSpec.new(
  behavior: null,
  max_replicas: null,
  metrics: null,
  min_replicas: null,
  scale_target_ref: null
)
```

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
zilla-0.2.0 docs/IoK8sApiAutoscalingV2beta2HorizontalPodAutoscalerSpec.md