These upgrade settings control the level of parallelism and the
level of disruption caused by an upgrade.
maxUnavailable controls the number of nodes that can be
simultaneously unavailable.
maxSurge controls the number of additional nodes that can be added
to the node pool temporarily for the time of the upgrade to increase
the number of available nodes.
(maxUnavailable + maxSurge) determines the level of parallelism (how
many nodes are being upgraded at the same time).
Note: upgrades inevitably introduce some disruption since workloads
need to be moved from old nodes to new, upgraded ones. Even if
maxUnavailable=0, this holds true. (Disruption stays within the
limits of PodDisruptionBudget, if it is configured.)
Consider a hypothetical node pool with 5 nodes having maxSurge=2,
maxUnavailable=1. This means the upgrade process upgrades 3 nodes
simultaneously. It creates 2 additional (upgraded) nodes, then it
brings down 3 old (not yet upgraded) nodes at the same time. This
ensures that there are always at least 4 nodes available.
These upgrade settings configure the upgrade strategy for the node
pool. Use strategy to switch between the strategies applied to the
node pool.
If the strategy is SURGE, use max_surge and max_unavailable to
control the level of parallelism and the level of disruption caused
by upgrade.
maxSurge controls the number of additional nodes that can be
added to the node pool temporarily for the time of the upgrade to
increase the number of available nodes.
maxUnavailable controls the number of nodes that can be
simultaneously unavailable.
(maxUnavailable + maxSurge) determines the level of parallelism
(how many nodes are being upgraded at the same time).
If the strategy is BLUE_GREEN, use blue_green_settings to configure
the blue-green upgrade related settings.
standard_rollout_policy is the default policy. The policy is used
to control the way blue pool gets drained. The draining is
executed in the batch mode. The batch size could be specified as
either percentage of the node pool size or the number of nodes.
batch_soak_duration is the soak time after each batch gets
drained.
node_pool_soak_duration is the soak time after all blue nodes are
drained. After this period, the blue pool nodes will be deleted.
int
The maximum number of nodes that can be
created beyond the current size of the node pool
during the upgrade process.
max_unavailable
int
The maximum number of nodes that can be
simultaneously unavailable during the upgrade
process. A node is considered available if its
status is Ready.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Class UpgradeSettings (2.59.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.59.0 (latest)](/python/docs/reference/container/latest/google.cloud.container_v1beta1.types.NodePool.UpgradeSettings)\n- [2.58.0](/python/docs/reference/container/2.58.0/google.cloud.container_v1beta1.types.NodePool.UpgradeSettings)\n- [2.57.0](/python/docs/reference/container/2.57.0/google.cloud.container_v1beta1.types.NodePool.UpgradeSettings)\n- [2.56.1](/python/docs/reference/container/2.56.1/google.cloud.container_v1beta1.types.NodePool.UpgradeSettings)\n- [2.55.1](/python/docs/reference/container/2.55.1/google.cloud.container_v1beta1.types.NodePool.UpgradeSettings)\n- [2.54.0](/python/docs/reference/container/2.54.0/google.cloud.container_v1beta1.types.NodePool.UpgradeSettings)\n- [2.53.0](/python/docs/reference/container/2.53.0/google.cloud.container_v1beta1.types.NodePool.UpgradeSettings)\n- [2.52.0](/python/docs/reference/container/2.52.0/google.cloud.container_v1beta1.types.NodePool.UpgradeSettings)\n- [2.50.0](/python/docs/reference/container/2.50.0/google.cloud.container_v1beta1.types.NodePool.UpgradeSettings)\n- [2.49.0](/python/docs/reference/container/2.49.0/google.cloud.container_v1beta1.types.NodePool.UpgradeSettings)\n- [2.48.0](/python/docs/reference/container/2.48.0/google.cloud.container_v1beta1.types.NodePool.UpgradeSettings)\n- [2.47.1](/python/docs/reference/container/2.47.1/google.cloud.container_v1beta1.types.NodePool.UpgradeSettings)\n- [2.46.0](/python/docs/reference/container/2.46.0/google.cloud.container_v1beta1.types.NodePool.UpgradeSettings)\n- [2.45.0](/python/docs/reference/container/2.45.0/google.cloud.container_v1beta1.types.NodePool.UpgradeSettings)\n- [2.44.0](/python/docs/reference/container/2.44.0/google.cloud.container_v1beta1.types.NodePool.UpgradeSettings)\n- [2.43.0](/python/docs/reference/container/2.43.0/google.cloud.container_v1beta1.types.NodePool.UpgradeSettings)\n- [2.42.0](/python/docs/reference/container/2.42.0/google.cloud.container_v1beta1.types.NodePool.UpgradeSettings)\n- [2.41.0](/python/docs/reference/container/2.41.0/google.cloud.container_v1beta1.types.NodePool.UpgradeSettings)\n- [2.40.0](/python/docs/reference/container/2.40.0/google.cloud.container_v1beta1.types.NodePool.UpgradeSettings)\n- [2.39.0](/python/docs/reference/container/2.39.0/google.cloud.container_v1beta1.types.NodePool.UpgradeSettings)\n- [2.38.0](/python/docs/reference/container/2.38.0/google.cloud.container_v1beta1.types.NodePool.UpgradeSettings)\n- [2.37.0](/python/docs/reference/container/2.37.0/google.cloud.container_v1beta1.types.NodePool.UpgradeSettings)\n- [2.36.0](/python/docs/reference/container/2.36.0/google.cloud.container_v1beta1.types.NodePool.UpgradeSettings)\n- [2.35.0](/python/docs/reference/container/2.35.0/google.cloud.container_v1beta1.types.NodePool.UpgradeSettings)\n- [2.34.0](/python/docs/reference/container/2.34.0/google.cloud.container_v1beta1.types.NodePool.UpgradeSettings)\n- [2.33.0](/python/docs/reference/container/2.33.0/google.cloud.container_v1beta1.types.NodePool.UpgradeSettings)\n- [2.32.0](/python/docs/reference/container/2.32.0/google.cloud.container_v1beta1.types.NodePool.UpgradeSettings)\n- [2.31.0](/python/docs/reference/container/2.31.0/google.cloud.container_v1beta1.types.NodePool.UpgradeSettings)\n- [2.30.0](/python/docs/reference/container/2.30.0/google.cloud.container_v1beta1.types.NodePool.UpgradeSettings)\n- [2.29.0](/python/docs/reference/container/2.29.0/google.cloud.container_v1beta1.types.NodePool.UpgradeSettings)\n- [2.28.0](/python/docs/reference/container/2.28.0/google.cloud.container_v1beta1.types.NodePool.UpgradeSettings)\n- [2.27.0](/python/docs/reference/container/2.27.0/google.cloud.container_v1beta1.types.NodePool.UpgradeSettings)\n- [2.26.0](/python/docs/reference/container/2.26.0/google.cloud.container_v1beta1.types.NodePool.UpgradeSettings)\n- [2.25.0](/python/docs/reference/container/2.25.0/google.cloud.container_v1beta1.types.NodePool.UpgradeSettings)\n- [2.24.0](/python/docs/reference/container/2.24.0/google.cloud.container_v1beta1.types.NodePool.UpgradeSettings)\n- [2.23.0](/python/docs/reference/container/2.23.0/google.cloud.container_v1beta1.types.NodePool.UpgradeSettings)\n- [2.22.0](/python/docs/reference/container/2.22.0/google.cloud.container_v1beta1.types.NodePool.UpgradeSettings)\n- [2.21.0](/python/docs/reference/container/2.21.0/google.cloud.container_v1beta1.types.NodePool.UpgradeSettings)\n- [2.20.0](/python/docs/reference/container/2.20.0/google.cloud.container_v1beta1.types.NodePool.UpgradeSettings)\n- [2.19.0](/python/docs/reference/container/2.19.0/google.cloud.container_v1beta1.types.NodePool.UpgradeSettings)\n- [2.18.0](/python/docs/reference/container/2.18.0/google.cloud.container_v1beta1.types.NodePool.UpgradeSettings)\n- [2.17.4](/python/docs/reference/container/2.17.4/google.cloud.container_v1beta1.types.NodePool.UpgradeSettings)\n- [2.16.0](/python/docs/reference/container/2.16.0/google.cloud.container_v1beta1.types.NodePool.UpgradeSettings)\n- [2.15.0](/python/docs/reference/container/2.15.0/google.cloud.container_v1beta1.types.NodePool.UpgradeSettings)\n- [2.14.0](/python/docs/reference/container/2.14.0/google.cloud.container_v1beta1.types.NodePool.UpgradeSettings)\n- [2.13.0](/python/docs/reference/container/2.13.0/google.cloud.container_v1beta1.types.NodePool.UpgradeSettings)\n- [2.12.2](/python/docs/reference/container/2.12.2/google.cloud.container_v1beta1.types.NodePool.UpgradeSettings)\n- [2.11.2](/python/docs/reference/container/2.11.2/google.cloud.container_v1beta1.types.NodePool.UpgradeSettings)\n- [2.10.8](/python/docs/reference/container/2.10.8/google.cloud.container_v1beta1.types.NodePool.UpgradeSettings)\n- [2.9.0](/python/docs/reference/container/2.9.0/google.cloud.container_v1beta1.types.NodePool.UpgradeSettings)\n- [2.8.1](/python/docs/reference/container/2.8.1/google.cloud.container_v1beta1.types.NodePool.UpgradeSettings)\n- [2.7.1](/python/docs/reference/container/2.7.1/google.cloud.container_v1beta1.types.NodePool.UpgradeSettings)\n- [2.6.1](/python/docs/reference/container/2.6.1/google.cloud.container_v1beta1.types.NodePool.UpgradeSettings)\n- [2.5.0](/python/docs/reference/container/2.5.0/google.cloud.container_v1beta1.types.NodePool.UpgradeSettings)\n- [2.4.1](/python/docs/reference/container/2.4.1/google.cloud.container_v1beta1.types.NodePool.UpgradeSettings)\n- [2.3.1](/python/docs/reference/container/2.3.1/google.cloud.container_v1beta1.types.NodePool.UpgradeSettings)\n- [2.2.0](/python/docs/reference/container/2.2.0/google.cloud.container_v1beta1.types.NodePool.UpgradeSettings)\n- [2.1.0](/python/docs/reference/container/2.1.0/google.cloud.container_v1beta1.types.NodePool.UpgradeSettings)\n- [2.0.1](/python/docs/reference/container/2.0.1/google.cloud.container_v1beta1.types.NodePool.UpgradeSettings)\n- [1.0.3](/python/docs/reference/container/1.0.3/google.cloud.container_v1beta1.types.NodePool.UpgradeSettings)\n- [0.5.0](/python/docs/reference/container/0.5.0/google.cloud.container_v1beta1.types.NodePool.UpgradeSettings)\n- [0.4.0](/python/docs/reference/container/0.4.0/google.cloud.container_v1beta1.types.NodePool.UpgradeSettings)\n- [0.3.0](/python/docs/reference/container/0.3.0/google.cloud.container_v1beta1.types.NodePool.UpgradeSettings) \n\n UpgradeSettings(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nThese upgrade settings control the level of parallelism and the\nlevel of disruption caused by an upgrade.\n\nmaxUnavailable controls the number of nodes that can be\nsimultaneously unavailable.\n\nmaxSurge controls the number of additional nodes that can be added\nto the node pool temporarily for the time of the upgrade to increase\nthe number of available nodes.\n\n(maxUnavailable + maxSurge) determines the level of parallelism (how\nmany nodes are being upgraded at the same time).\n\nNote: upgrades inevitably introduce some disruption since workloads\nneed to be moved from old nodes to new, upgraded ones. Even if\nmaxUnavailable=0, this holds true. (Disruption stays within the\nlimits of PodDisruptionBudget, if it is configured.)\n\nConsider a hypothetical node pool with 5 nodes having maxSurge=2,\nmaxUnavailable=1. This means the upgrade process upgrades 3 nodes\nsimultaneously. It creates 2 additional (upgraded) nodes, then it\nbrings down 3 old (not yet upgraded) nodes at the same time. This\nensures that there are always at least 4 nodes available.\n\nThese upgrade settings configure the upgrade strategy for the node\npool. Use strategy to switch between the strategies applied to the\nnode pool.\n\nIf the strategy is SURGE, use max_surge and max_unavailable to\ncontrol the level of parallelism and the level of disruption caused\nby upgrade.\n\n1. maxSurge controls the number of additional nodes that can be added to the node pool temporarily for the time of the upgrade to increase the number of available nodes.\n2. maxUnavailable controls the number of nodes that can be simultaneously unavailable.\n3. (maxUnavailable + maxSurge) determines the level of parallelism (how many nodes are being upgraded at the same time).\n\nIf the strategy is BLUE_GREEN, use blue_green_settings to configure\nthe blue-green upgrade related settings.\n\n1. standard_rollout_policy is the default policy. The policy is used to control the way blue pool gets drained. The draining is executed in the batch mode. The batch size could be specified as either percentage of the node pool size or the number of nodes. batch_soak_duration is the soak time after each batch gets drained.\n2. node_pool_soak_duration is the soak time after all blue nodes are drained. After this period, the blue pool nodes will be deleted.\n\n.. _oneof: \u003chttps://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields\u003e"]]