ManagedClusterPropertiesAutoScalerProfile Class
- java.
lang. Object - com.
azure. resourcemanager. containerservice. models. ManagedClusterPropertiesAutoScalerProfile
- com.
public final class ManagedClusterPropertiesAutoScalerProfile
Parameters to be applied to the cluster-autoscaler when enabled.
Constructor Summary
Constructor | Description |
---|---|
ManagedClusterPropertiesAutoScalerProfile() |
Creates an instance of Managed |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
balanceSimilarNodeGroups()
Get the balance |
Expander |
expander()
Get the expander property: The expander to use when scaling up If not specified, the default is 'random'. |
String |
maxEmptyBulkDelete()
Get the max |
String |
maxGracefulTerminationSec()
Get the max |
String |
maxNodeProvisionTime()
Get the max |
String |
maxTotalUnreadyPercentage()
Get the max |
String |
newPodScaleUpDelay()
Get the new |
String |
okTotalUnreadyCount()
Get the ok |
String |
scaleDownDelayAfterAdd()
Get the scale |
String |
scaleDownDelayAfterDelete()
Get the scale |
String |
scaleDownDelayAfterFailure()
Get the scale |
String |
scaleDownUnneededTime()
Get the scale |
String |
scaleDownUnreadyTime()
Get the scale |
String |
scaleDownUtilizationThreshold()
Get the scale |
String |
scanInterval()
Get the scan |
String |
skipNodesWithLocalStorage()
Get the skip |
String |
skipNodesWithSystemPods()
Get the skip |
void |
validate()
Validates the instance. |
Managed |
withBalanceSimilarNodeGroups(String balanceSimilarNodeGroups)
Set the balance |
Managed |
withExpander(Expander expander)
Set the expander property: The expander to use when scaling up If not specified, the default is 'random'. |
Managed |
withMaxEmptyBulkDelete(String maxEmptyBulkDelete)
Set the max |
Managed |
withMaxGracefulTerminationSec(String maxGracefulTerminationSec)
Set the max |
Managed |
withMaxNodeProvisionTime(String maxNodeProvisionTime)
Set the max |
Managed |
withMaxTotalUnreadyPercentage(String maxTotalUnreadyPercentage)
Set the max |
Managed |
withNewPodScaleUpDelay(String newPodScaleUpDelay)
Set the new |
Managed |
withOkTotalUnreadyCount(String okTotalUnreadyCount)
Set the ok |
Managed |
withScaleDownDelayAfterAdd(String scaleDownDelayAfterAdd)
Set the scale |
Managed |
withScaleDownDelayAfterDelete(String scaleDownDelayAfterDelete)
Set the scale |
Managed |
withScaleDownDelayAfterFailure(String scaleDownDelayAfterFailure)
Set the scale |
Managed |
withScaleDownUnneededTime(String scaleDownUnneededTime)
Set the scale |
Managed |
withScaleDownUnreadyTime(String scaleDownUnreadyTime)
Set the scale |
Managed |
withScaleDownUtilizationThreshold(String scaleDownUtilizationThreshold)
Set the scale |
Managed |
withScanInterval(String scanInterval)
Set the scan |
Managed |
withSkipNodesWithLocalStorage(String skipNodesWithLocalStorage)
Set the skip |
Managed |
withSkipNodesWithSystemPods(String skipNodesWithSystemPods)
Set the skip |
Methods inherited from java.lang.Object
Constructor Details
ManagedClusterPropertiesAutoScalerProfile
public ManagedClusterPropertiesAutoScalerProfile()
Creates an instance of ManagedClusterPropertiesAutoScalerProfile class.
Method Details
balanceSimilarNodeGroups
public String balanceSimilarNodeGroups()
Get the balanceSimilarNodeGroups property: Detects similar node pools and balances the number of nodes between them. Valid values are 'true' and 'false'.
Returns:
expander
public Expander expander()
Get the expander property: The expander to use when scaling up If not specified, the default is 'random'. See [expanders](https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md\#what-are-expanders) for more information.
Returns:
maxEmptyBulkDelete
public String maxEmptyBulkDelete()
Get the maxEmptyBulkDelete property: The maximum number of empty nodes that can be deleted at the same time. This must be a positive integer. The default is 10.
Returns:
maxGracefulTerminationSec
public String maxGracefulTerminationSec()
Get the maxGracefulTerminationSec property: The maximum number of seconds the cluster autoscaler waits for pod termination when trying to scale down a node. The default is 600.
Returns:
maxNodeProvisionTime
public String maxNodeProvisionTime()
Get the maxNodeProvisionTime property: The maximum time the autoscaler waits for a node to be provisioned. The default is '15m'. Values must be an integer followed by an 'm'. No unit of time other than minutes (m) is supported.
Returns:
maxTotalUnreadyPercentage
public String maxTotalUnreadyPercentage()
Get the maxTotalUnreadyPercentage property: The maximum percentage of unready nodes in the cluster. After this percentage is exceeded, cluster autoscaler halts operations. The default is 45. The maximum is 100 and the minimum is 0.
Returns:
newPodScaleUpDelay
public String newPodScaleUpDelay()
Get the newPodScaleUpDelay property: Ignore unscheduled pods before they're a certain age. For scenarios like burst/batch scale where you don't want CA to act before the kubernetes scheduler could schedule all the pods, you can tell CA to ignore unscheduled pods before they're a certain age. The default is '0s'. Values must be an integer followed by a unit ('s' for seconds, 'm' for minutes, 'h' for hours, etc).
Returns:
okTotalUnreadyCount
public String okTotalUnreadyCount()
Get the okTotalUnreadyCount property: The number of allowed unready nodes, irrespective of max-total-unready-percentage. This must be an integer. The default is 3.
Returns:
scaleDownDelayAfterAdd
public String scaleDownDelayAfterAdd()
Get the scaleDownDelayAfterAdd property: How long after scale up that scale down evaluation resumes The default is '10m'. Values must be an integer followed by an 'm'. No unit of time other than minutes (m) is supported.
Returns:
scaleDownDelayAfterDelete
public String scaleDownDelayAfterDelete()
Get the scaleDownDelayAfterDelete property: How long after node deletion that scale down evaluation resumes. The default is the scan-interval. Values must be an integer followed by an 'm'. No unit of time other than minutes (m) is supported.
Returns:
scaleDownDelayAfterFailure
public String scaleDownDelayAfterFailure()
Get the scaleDownDelayAfterFailure property: How long after scale down failure that scale down evaluation resumes. The default is '3m'. Values must be an integer followed by an 'm'. No unit of time other than minutes (m) is supported.
Returns:
scaleDownUnneededTime
public String scaleDownUnneededTime()
Get the scaleDownUnneededTime property: How long a node should be unneeded before it is eligible for scale down. The default is '10m'. Values must be an integer followed by an 'm'. No unit of time other than minutes (m) is supported.
Returns:
scaleDownUnreadyTime
public String scaleDownUnreadyTime()
Get the scaleDownUnreadyTime property: How long an unready node should be unneeded before it is eligible for scale down The default is '20m'. Values must be an integer followed by an 'm'. No unit of time other than minutes (m) is supported.
Returns:
scaleDownUtilizationThreshold
public String scaleDownUtilizationThreshold()
Get the scaleDownUtilizationThreshold property: Node utilization level, defined as sum of requested resources divided by capacity, below which a node can be considered for scale down. The default is '0.5'.
Returns:
scanInterval
public String scanInterval()
Get the scanInterval property: How often cluster is reevaluated for scale up or down. The default is '10'. Values must be an integer number of seconds.
Returns:
skipNodesWithLocalStorage
public String skipNodesWithLocalStorage()
Get the skipNodesWithLocalStorage property: If cluster autoscaler will skip deleting nodes with pods with local storage, for example, EmptyDir or HostPath. The default is true.
Returns:
skipNodesWithSystemPods
public String skipNodesWithSystemPods()
Get the skipNodesWithSystemPods property: If cluster autoscaler will skip deleting nodes with pods from kube-system (except for DaemonSet or mirror pods) The default is true.
Returns:
validate
public void validate()
Validates the instance.
withBalanceSimilarNodeGroups
public ManagedClusterPropertiesAutoScalerProfile withBalanceSimilarNodeGroups(String balanceSimilarNodeGroups)
Set the balanceSimilarNodeGroups property: Detects similar node pools and balances the number of nodes between them. Valid values are 'true' and 'false'.
Parameters:
Returns:
withExpander
public ManagedClusterPropertiesAutoScalerProfile withExpander(Expander expander)
Set the expander property: The expander to use when scaling up If not specified, the default is 'random'. See [expanders](https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md\#what-are-expanders) for more information.
Parameters:
Returns:
withMaxEmptyBulkDelete
public ManagedClusterPropertiesAutoScalerProfile withMaxEmptyBulkDelete(String maxEmptyBulkDelete)
Set the maxEmptyBulkDelete property: The maximum number of empty nodes that can be deleted at the same time. This must be a positive integer. The default is 10.
Parameters:
Returns:
withMaxGracefulTerminationSec
public ManagedClusterPropertiesAutoScalerProfile withMaxGracefulTerminationSec(String maxGracefulTerminationSec)
Set the maxGracefulTerminationSec property: The maximum number of seconds the cluster autoscaler waits for pod termination when trying to scale down a node. The default is 600.
Parameters:
Returns:
withMaxNodeProvisionTime
public ManagedClusterPropertiesAutoScalerProfile withMaxNodeProvisionTime(String maxNodeProvisionTime)
Set the maxNodeProvisionTime property: The maximum time the autoscaler waits for a node to be provisioned. The default is '15m'. Values must be an integer followed by an 'm'. No unit of time other than minutes (m) is supported.
Parameters:
Returns:
withMaxTotalUnreadyPercentage
public ManagedClusterPropertiesAutoScalerProfile withMaxTotalUnreadyPercentage(String maxTotalUnreadyPercentage)
Set the maxTotalUnreadyPercentage property: The maximum percentage of unready nodes in the cluster. After this percentage is exceeded, cluster autoscaler halts operations. The default is 45. The maximum is 100 and the minimum is 0.
Parameters:
Returns:
withNewPodScaleUpDelay
public ManagedClusterPropertiesAutoScalerProfile withNewPodScaleUpDelay(String newPodScaleUpDelay)
Set the newPodScaleUpDelay property: Ignore unscheduled pods before they're a certain age. For scenarios like burst/batch scale where you don't want CA to act before the kubernetes scheduler could schedule all the pods, you can tell CA to ignore unscheduled pods before they're a certain age. The default is '0s'. Values must be an integer followed by a unit ('s' for seconds, 'm' for minutes, 'h' for hours, etc).
Parameters:
Returns:
withOkTotalUnreadyCount
public ManagedClusterPropertiesAutoScalerProfile withOkTotalUnreadyCount(String okTotalUnreadyCount)
Set the okTotalUnreadyCount property: The number of allowed unready nodes, irrespective of max-total-unready-percentage. This must be an integer. The default is 3.
Parameters:
Returns:
withScaleDownDelayAfterAdd
public ManagedClusterPropertiesAutoScalerProfile withScaleDownDelayAfterAdd(String scaleDownDelayAfterAdd)
Set the scaleDownDelayAfterAdd property: How long after scale up that scale down evaluation resumes The default is '10m'. Values must be an integer followed by an 'm'. No unit of time other than minutes (m) is supported.
Parameters:
Returns:
withScaleDownDelayAfterDelete
public ManagedClusterPropertiesAutoScalerProfile withScaleDownDelayAfterDelete(String scaleDownDelayAfterDelete)
Set the scaleDownDelayAfterDelete property: How long after node deletion that scale down evaluation resumes. The default is the scan-interval. Values must be an integer followed by an 'm'. No unit of time other than minutes (m) is supported.
Parameters:
Returns:
withScaleDownDelayAfterFailure
public ManagedClusterPropertiesAutoScalerProfile withScaleDownDelayAfterFailure(String scaleDownDelayAfterFailure)
Set the scaleDownDelayAfterFailure property: How long after scale down failure that scale down evaluation resumes. The default is '3m'. Values must be an integer followed by an 'm'. No unit of time other than minutes (m) is supported.
Parameters:
Returns:
withScaleDownUnneededTime
public ManagedClusterPropertiesAutoScalerProfile withScaleDownUnneededTime(String scaleDownUnneededTime)
Set the scaleDownUnneededTime property: How long a node should be unneeded before it is eligible for scale down. The default is '10m'. Values must be an integer followed by an 'm'. No unit of time other than minutes (m) is supported.
Parameters:
Returns:
withScaleDownUnreadyTime
public ManagedClusterPropertiesAutoScalerProfile withScaleDownUnreadyTime(String scaleDownUnreadyTime)
Set the scaleDownUnreadyTime property: How long an unready node should be unneeded before it is eligible for scale down The default is '20m'. Values must be an integer followed by an 'm'. No unit of time other than minutes (m) is supported.
Parameters:
Returns:
withScaleDownUtilizationThreshold
public ManagedClusterPropertiesAutoScalerProfile withScaleDownUtilizationThreshold(String scaleDownUtilizationThreshold)
Set the scaleDownUtilizationThreshold property: Node utilization level, defined as sum of requested resources divided by capacity, below which a node can be considered for scale down. The default is '0.5'.
Parameters:
Returns:
withScanInterval
public ManagedClusterPropertiesAutoScalerProfile withScanInterval(String scanInterval)
Set the scanInterval property: How often cluster is reevaluated for scale up or down. The default is '10'. Values must be an integer number of seconds.
Parameters:
Returns:
withSkipNodesWithLocalStorage
public ManagedClusterPropertiesAutoScalerProfile withSkipNodesWithLocalStorage(String skipNodesWithLocalStorage)
Set the skipNodesWithLocalStorage property: If cluster autoscaler will skip deleting nodes with pods with local storage, for example, EmptyDir or HostPath. The default is true.
Parameters:
Returns:
withSkipNodesWithSystemPods
public ManagedClusterPropertiesAutoScalerProfile withSkipNodesWithSystemPods(String skipNodesWithSystemPods)
Set the skipNodesWithSystemPods property: If cluster autoscaler will skip deleting nodes with pods from kube-system (except for DaemonSet or mirror pods) The default is true.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for