kubernetes_asyncio.client.models.v1_rolling_update_deployment 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_rolling_update_deployment.V1RollingUpdateDeployment(max_surge=None, max_unavailable=None, local_vars_configuration=None)

Bases: object

NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech

Do not edit the class manually.

attribute_map = {'max_surge': 'maxSurge', 'max_unavailable': 'maxUnavailable'}
property max_surge

Gets the max_surge of this V1RollingUpdateDeployment. # noqa: E501

The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. # noqa: E501

Returns:

The max_surge of this V1RollingUpdateDeployment. # noqa: E501

Return type:

object

property max_unavailable

Gets the max_unavailable of this V1RollingUpdateDeployment. # 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 down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. # noqa: E501

Returns:

The max_unavailable of this V1RollingUpdateDeployment. # noqa: E501

Return type:

object

openapi_types = {'max_surge': 'object', 'max_unavailable': 'object'}
to_dict(serialize=False)

Returns the model properties as a dict

to_str()

Returns the string representation of the model