kubernetes_asyncio.client.models.v2_hpa_scaling_rules 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_hpa_scaling_rules.V2HPAScalingRules(policies=None, select_policy=None, stabilization_window_seconds=None, tolerance=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 = {'policies': 'policies', 'select_policy': 'selectPolicy', 'stabilization_window_seconds': 'stabilizationWindowSeconds', 'tolerance': 'tolerance'}
- openapi_types = {'policies': 'list[V2HPAScalingPolicy]', 'select_policy': 'str', 'stabilization_window_seconds': 'int', 'tolerance': 'str'}
- property policies
Gets the policies of this V2HPAScalingRules. # noqa: E501
policies is a list of potential scaling polices which can be used during scaling. If not set, use the default values: - For scale up: allow doubling the number of pods, or an absolute change of 4 pods in a 15s window. - For scale down: allow all pods to be removed in a 15s window. # noqa: E501
- Returns:
The policies of this V2HPAScalingRules. # noqa: E501
- Return type:
list[V2HPAScalingPolicy]
- property select_policy
Gets the select_policy of this V2HPAScalingRules. # noqa: E501
selectPolicy is used to specify which policy should be used. If not set, the default value Max is used. # noqa: E501
- Returns:
The select_policy of this V2HPAScalingRules. # noqa: E501
- Return type:
str
- property stabilization_window_seconds
Gets the stabilization_window_seconds of this V2HPAScalingRules. # noqa: E501
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). # noqa: E501
- Returns:
The stabilization_window_seconds of this V2HPAScalingRules. # 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
- property tolerance
Gets the tolerance of this V2HPAScalingRules. # noqa: E501
tolerance is the tolerance on the ratio between the current and desired metric value under which no updates are made to the desired number of replicas (e.g. 0.01 for 1%). Must be greater than or equal to zero. If not set, the default cluster-wide tolerance is applied (by default 10%). For example, if autoscaling is configured with a memory consumption target of 100Mi, and scale-down and scale-up tolerances of 5% and 1% respectively, scaling will be triggered when the actual consumption falls below 95Mi or exceeds 101Mi. This is an alpha field and requires enabling the HPAConfigurableTolerance feature gate. # noqa: E501
- Returns:
The tolerance of this V2HPAScalingRules. # noqa: E501
- Return type:
str