ManagedClusterPropertiesAutoScalerProfile Class
- java.
lang. Object - com.
azure. resourcemanager. containerservice. models. ManagedClusterPropertiesAutoScalerProfile
- com.
Implements
public final class ManagedClusterPropertiesAutoScalerProfile
implements JsonSerializable<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 |
Boolean |
daemonsetEvictionForEmptyNodes()
Get the daemonset |
Boolean |
daemonsetEvictionForOccupiedNodes()
Get the daemonset |
Expander |
expander()
Get the expander property: If not specified, the default is 'random'. |
static
Managed |
fromJson(JsonReader jsonReader)
Reads an instance of Managed |
Boolean |
ignoreDaemonsetsUtilization()
Get the ignore |
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 |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Managed |
withBalanceSimilarNodeGroups(String balanceSimilarNodeGroups)
Set the balance |
Managed |
withDaemonsetEvictionForEmptyNodes(Boolean daemonsetEvictionForEmptyNodes)
Set the daemonset |
Managed |
withDaemonsetEvictionForOccupiedNodes(Boolean daemonsetEvictionForOccupiedNodes)
Set the daemonset |
Managed |
withExpander(Expander expander)
Set the expander property: If not specified, the default is 'random'. |
Managed |
withIgnoreDaemonsetsUtilization(Boolean ignoreDaemonsetsUtilization)
Set the ignore |
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: Valid values are 'true' and 'false'.
Returns:
daemonsetEvictionForEmptyNodes
public Boolean daemonsetEvictionForEmptyNodes()
Get the daemonsetEvictionForEmptyNodes property: If set to true, all daemonset pods on empty nodes will be evicted before deletion of the node. If the daemonset pod cannot be evicted another node will be chosen for scaling. If set to false, the node will be deleted without ensuring that daemonset pods are deleted or evicted.
Returns:
daemonsetEvictionForOccupiedNodes
public Boolean daemonsetEvictionForOccupiedNodes()
Get the daemonsetEvictionForOccupiedNodes property: If set to true, all daemonset pods on occupied nodes will be evicted before deletion of the node. If the daemonset pod cannot be evicted another node will be chosen for scaling. If set to false, the node will be deleted without ensuring that daemonset pods are deleted or evicted.
Returns:
expander
public Expander expander()
Get the expander property: 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:
fromJson
public static ManagedClusterPropertiesAutoScalerProfile fromJson(JsonReader jsonReader)
Reads an instance of ManagedClusterPropertiesAutoScalerProfile from the JsonReader.
Parameters:
Returns:
Throws:
ignoreDaemonsetsUtilization
public Boolean ignoreDaemonsetsUtilization()
Get the ignoreDaemonsetsUtilization property: If set to true, the resources used by daemonset will be taken into account when making scaling down decisions.
Returns:
maxEmptyBulkDelete
public String maxEmptyBulkDelete()
Get the maxEmptyBulkDelete property: The default is 10.
Returns:
maxGracefulTerminationSec
public String maxGracefulTerminationSec()
Get the maxGracefulTerminationSec property: The default is 600.
Returns:
maxNodeProvisionTime
public String maxNodeProvisionTime()
Get the maxNodeProvisionTime property: 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 default is 45. The maximum is 100 and the minimum is 0.
Returns:
newPodScaleUpDelay
public String newPodScaleUpDelay()
Get the newPodScaleUpDelay property: 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: This must be an integer. The default is 3.
Returns:
scaleDownDelayAfterAdd
public String scaleDownDelayAfterAdd()
Get the scaleDownDelayAfterAdd property: 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: 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: 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: 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: 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: The default is '0.5'.
Returns:
scanInterval
public String scanInterval()
Get the scanInterval property: The default is '10'. Values must be an integer number of seconds.
Returns:
skipNodesWithLocalStorage
public String skipNodesWithLocalStorage()
Get the skipNodesWithLocalStorage property: The default is true.
Returns:
skipNodesWithSystemPods
public String skipNodesWithSystemPods()
Get the skipNodesWithSystemPods property: The default is true.
Returns:
toJson
validate
public void validate()
Validates the instance.
withBalanceSimilarNodeGroups
public ManagedClusterPropertiesAutoScalerProfile withBalanceSimilarNodeGroups(String balanceSimilarNodeGroups)
Set the balanceSimilarNodeGroups property: Valid values are 'true' and 'false'.
Parameters:
Returns:
withDaemonsetEvictionForEmptyNodes
public ManagedClusterPropertiesAutoScalerProfile withDaemonsetEvictionForEmptyNodes(Boolean daemonsetEvictionForEmptyNodes)
Set the daemonsetEvictionForEmptyNodes property: If set to true, all daemonset pods on empty nodes will be evicted before deletion of the node. If the daemonset pod cannot be evicted another node will be chosen for scaling. If set to false, the node will be deleted without ensuring that daemonset pods are deleted or evicted.
Parameters:
Returns:
withDaemonsetEvictionForOccupiedNodes
public ManagedClusterPropertiesAutoScalerProfile withDaemonsetEvictionForOccupiedNodes(Boolean daemonsetEvictionForOccupiedNodes)
Set the daemonsetEvictionForOccupiedNodes property: If set to true, all daemonset pods on occupied nodes will be evicted before deletion of the node. If the daemonset pod cannot be evicted another node will be chosen for scaling. If set to false, the node will be deleted without ensuring that daemonset pods are deleted or evicted.
Parameters:
Returns:
withExpander
public ManagedClusterPropertiesAutoScalerProfile withExpander(Expander expander)
Set the expander property: 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:
withIgnoreDaemonsetsUtilization
public ManagedClusterPropertiesAutoScalerProfile withIgnoreDaemonsetsUtilization(Boolean ignoreDaemonsetsUtilization)
Set the ignoreDaemonsetsUtilization property: If set to true, the resources used by daemonset will be taken into account when making scaling down decisions.
Parameters:
Returns:
withMaxEmptyBulkDelete
public ManagedClusterPropertiesAutoScalerProfile withMaxEmptyBulkDelete(String maxEmptyBulkDelete)
Set the maxEmptyBulkDelete property: The default is 10.
Parameters:
Returns:
withMaxGracefulTerminationSec
public ManagedClusterPropertiesAutoScalerProfile withMaxGracefulTerminationSec(String maxGracefulTerminationSec)
Set the maxGracefulTerminationSec property: The default is 600.
Parameters:
Returns:
withMaxNodeProvisionTime
public ManagedClusterPropertiesAutoScalerProfile withMaxNodeProvisionTime(String maxNodeProvisionTime)
Set the maxNodeProvisionTime property: 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 default is 45. The maximum is 100 and the minimum is 0.
Parameters:
Returns:
withNewPodScaleUpDelay
public ManagedClusterPropertiesAutoScalerProfile withNewPodScaleUpDelay(String newPodScaleUpDelay)
Set the newPodScaleUpDelay property: 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: This must be an integer. The default is 3.
Parameters:
Returns:
withScaleDownDelayAfterAdd
public ManagedClusterPropertiesAutoScalerProfile withScaleDownDelayAfterAdd(String scaleDownDelayAfterAdd)
Set the scaleDownDelayAfterAdd property: 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: 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: 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: 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: 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: The default is '0.5'.
Parameters:
Returns:
withScanInterval
public ManagedClusterPropertiesAutoScalerProfile withScanInterval(String scanInterval)
Set the scanInterval property: The default is '10'. Values must be an integer number of seconds.
Parameters:
Returns:
withSkipNodesWithLocalStorage
public ManagedClusterPropertiesAutoScalerProfile withSkipNodesWithLocalStorage(String skipNodesWithLocalStorage)
Set the skipNodesWithLocalStorage property: The default is true.
Parameters:
Returns:
withSkipNodesWithSystemPods
public ManagedClusterPropertiesAutoScalerProfile withSkipNodesWithSystemPods(String skipNodesWithSystemPods)
Set the skipNodesWithSystemPods property: The default is true.
Parameters:
Returns:
Applies to
Azure SDK for Java