Class AgentPoolUpgradeSettings
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmaxSurge()Get the maxSurge property: The maximum number or percentage of nodes that are surged during upgrade.voidvalidate()Validates the instance.withMaxSurge(String maxSurge) Set the maxSurge property: The maximum number or percentage of nodes that are surged during upgrade.
-
Constructor Details
-
AgentPoolUpgradeSettings
public AgentPoolUpgradeSettings()
-
-
Method Details
-
maxSurge
Get the maxSurge property: The maximum number or percentage of nodes that are surged during upgrade.This can either be set to an integer (e.g. '5') or a percentage (e.g. '50%'). If a percentage is specified, it is the percentage of the total agent pool size at the time of the upgrade. For percentages, fractional nodes are rounded up. If not specified, the default is 1. For more information, including best practices, see: https://docs.microsoft.com/azure/aks/upgrade-cluster#customize-node-surge-upgrade.
- Returns:
- the maxSurge value.
-
withMaxSurge
Set the maxSurge property: The maximum number or percentage of nodes that are surged during upgrade.This can either be set to an integer (e.g. '5') or a percentage (e.g. '50%'). If a percentage is specified, it is the percentage of the total agent pool size at the time of the upgrade. For percentages, fractional nodes are rounded up. If not specified, the default is 1. For more information, including best practices, see: https://docs.microsoft.com/azure/aks/upgrade-cluster#customize-node-surge-upgrade.
- Parameters:
maxSurge- the maxSurge value to set.- Returns:
- the AgentPoolUpgradeSettings object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-