kubernetes_asyncio.client.models.v2_horizontal_pod_autoscaler_spec module
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: v1.34.3 Generated by: https://openapi-generator.tech
- class kubernetes_asyncio.client.models.v2_horizontal_pod_autoscaler_spec.V2HorizontalPodAutoscalerSpec(behavior=None, max_replicas=None, metrics=None, min_replicas=None, scale_target_ref=None, local_vars_configuration=None)
Bases:
objectNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech
Do not edit the class manually.
- attribute_map = {'behavior': 'behavior', 'max_replicas': 'maxReplicas', 'metrics': 'metrics', 'min_replicas': 'minReplicas', 'scale_target_ref': 'scaleTargetRef'}
- property behavior
Gets the behavior of this V2HorizontalPodAutoscalerSpec. # noqa: E501
- Returns:
The behavior of this V2HorizontalPodAutoscalerSpec. # noqa: E501
- Return type:
- property max_replicas
Gets the max_replicas of this V2HorizontalPodAutoscalerSpec. # noqa: E501
maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas. # noqa: E501
- Returns:
The max_replicas of this V2HorizontalPodAutoscalerSpec. # noqa: E501
- Return type:
int
- property metrics
Gets the metrics of this V2HorizontalPodAutoscalerSpec. # noqa: E501
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. # noqa: E501
- Returns:
The metrics of this V2HorizontalPodAutoscalerSpec. # noqa: E501
- Return type:
list[V2MetricSpec]
- property min_replicas
Gets the min_replicas of this V2HorizontalPodAutoscalerSpec. # noqa: E501
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. # noqa: E501
- Returns:
The min_replicas of this V2HorizontalPodAutoscalerSpec. # noqa: E501
- Return type:
int
- openapi_types = {'behavior': 'V2HorizontalPodAutoscalerBehavior', 'max_replicas': 'int', 'metrics': 'list[V2MetricSpec]', 'min_replicas': 'int', 'scale_target_ref': 'V2CrossVersionObjectReference'}
- property scale_target_ref
Gets the scale_target_ref of this V2HorizontalPodAutoscalerSpec. # noqa: E501
- Returns:
The scale_target_ref of this V2HorizontalPodAutoscalerSpec. # noqa: E501
- Return type:
- to_dict(serialize=False)
Returns the model properties as a dict
- to_str()
Returns the string representation of the model