kubernetes_asyncio.client.models.v1_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.v1_horizontal_pod_autoscaler_spec.V1HorizontalPodAutoscalerSpec(max_replicas=None, min_replicas=None, scale_target_ref=None, target_cpu_utilization_percentage=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 = {'max_replicas': 'maxReplicas', 'min_replicas': 'minReplicas', 'scale_target_ref': 'scaleTargetRef', 'target_cpu_utilization_percentage': 'targetCPUUtilizationPercentage'}
- property max_replicas
Gets the max_replicas of this V1HorizontalPodAutoscalerSpec. # noqa: E501
maxReplicas is the upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas. # noqa: E501
- Returns:
The max_replicas of this V1HorizontalPodAutoscalerSpec. # noqa: E501
- Return type:
int
- property min_replicas
Gets the min_replicas of this V1HorizontalPodAutoscalerSpec. # 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 V1HorizontalPodAutoscalerSpec. # noqa: E501
- Return type:
int
- openapi_types = {'max_replicas': 'int', 'min_replicas': 'int', 'scale_target_ref': 'V1CrossVersionObjectReference', 'target_cpu_utilization_percentage': 'int'}
- property scale_target_ref
Gets the scale_target_ref of this V1HorizontalPodAutoscalerSpec. # noqa: E501
- Returns:
The scale_target_ref of this V1HorizontalPodAutoscalerSpec. # noqa: E501
- Return type:
- property target_cpu_utilization_percentage
Gets the target_cpu_utilization_percentage of this V1HorizontalPodAutoscalerSpec. # noqa: E501
targetCPUUtilizationPercentage is the target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used. # noqa: E501
- Returns:
The target_cpu_utilization_percentage of this V1HorizontalPodAutoscalerSpec. # noqa: E501
- Return type:
int
- to_dict(serialize=False)
Returns the model properties as a dict
- to_str()
Returns the string representation of the model