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 | Description |
---|---|
Managed |
Creates an instance of Managed |
Modifier and Type | Method and Description |
---|---|
String |
balance Get the balance |
Boolean |
daemonset Get the daemonset |
Boolean |
daemonset Get the daemonset |
Expander |
expander()
Get the expander property: If not specified, the default is 'random'. |
static
Managed |
from Reads an instance of Managed |
Boolean |
ignore Get the ignore |
String |
max Get the max |
String |
max Get the max |
String |
max Get the max |
String |
max Get the max |
String |
new Get the new |
String |
ok Get the ok |
String |
scale Get the scale |
String |
scale Get the scale |
String |
scale Get the scale |
String |
scale Get the scale |
String |
scale Get the scale |
String |
scale Get the scale |
String |
scan Get the scan |
String |
skip Get the skip |
String |
skip Get the skip |
Json |
to |
void |
validate()
Validates the instance. |
Managed |
with Set the balance |
Managed |
with Set the daemonset |
Managed |
with Set the daemonset |
Managed |
with Set the expander property: If not specified, the default is 'random'. |
Managed |
with Set the ignore |
Managed |
with Set the max |
Managed |
with Set the max |
Managed |
with Set the max |
Managed |
with Set the max |
Managed |
with Set the new |
Managed |
with Set the ok |
Managed |
with Set the scale |
Managed |
with Set the scale |
Managed |
with Set the scale |
Managed |
with Set the scale |
Managed |
with Set the scale |
Managed |
with Set the scale |
Managed |
with Set the scan |
Managed |
with Set the skip |
Managed |
with Set the skip |
Methods inherited from java.lang.Object
ManagedClusterPropertiesAutoScalerProfile
public ManagedClusterPropertiesAutoScalerProfile()
Creates an instance of ManagedClusterPropertiesAutoScalerProfile class.
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:
Azure SDK for Java-feedback
Azure SDK for Java is een open source project. Selecteer een koppeling om feedback te geven: