Class AgentPoolUpgradeSettings

java.lang.Object
com.azure.resourcemanager.containerservice.models.AgentPoolUpgradeSettings

public final class AgentPoolUpgradeSettings extends Object
Settings for upgrading an agentpool.
  • Constructor Details

    • AgentPoolUpgradeSettings

      public AgentPoolUpgradeSettings()
  • Method Details

    • maxSurge

      public String 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

      public AgentPoolUpgradeSettings withMaxSurge(String maxSurge)
      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.