kubernetes.aio.client.models.v1_rolling_update_stateful_set_strategy module¶
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: release-1.36 Generated by: https://openapi-generator.tech
- class kubernetes.aio.client.models.v1_rolling_update_stateful_set_strategy.V1RollingUpdateStatefulSetStrategy(max_unavailable=None, partition=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_unavailable': 'maxUnavailable', 'partition': 'partition'}¶
Gets the max_unavailable of this V1RollingUpdateStatefulSetStrategy. # noqa: E501
The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding up. This can not be 0. Defaults to 1. This field is beta-level and is enabled by default. The field applies to all pods in the range 0 to Replicas-1. That means if there is any unavailable pod in the range 0 to Replicas-1, it will be counted towards MaxUnavailable. This setting might not be effective for the OrderedReady podManagementPolicy. That policy ensures pods are created and become ready one at a time. # noqa: E501
- Returns:
The max_unavailable of this V1RollingUpdateStatefulSetStrategy. # noqa: E501
- Return type:
- openapi_types = {'max_unavailable': 'object', 'partition': 'int'}¶
- property partition¶
Gets the partition of this V1RollingUpdateStatefulSetStrategy. # noqa: E501
Partition indicates the ordinal at which the StatefulSet should be partitioned for updates. During a rolling update, all pods from ordinal Replicas-1 to Partition are updated. All pods from ordinal Partition-1 to 0 remain untouched. This is helpful in being able to do a canary based deployment. The default value is 0. # noqa: E501
- Returns:
The partition of this V1RollingUpdateStatefulSetStrategy. # noqa: E501
- Return type:
- to_dict(serialize=False)¶
Returns the model properties as a dict
- to_str()¶
Returns the string representation of the model