Udostępnij za pośrednictwem


ManagedClusterVerticalPodAutoscaler Constructor

Definition

Initializes a new instance of ManagedClusterVerticalPodAutoscaler.

public ManagedClusterVerticalPodAutoscaler (bool isEnabled, Azure.ResourceManager.ContainerService.Models.ManagedClusterWorkloadAutoScalerControlledValue controlledValues, Azure.ResourceManager.ContainerService.Models.ManagedClusterVerticalPodAutoscalerUpdateMode updateMode);
new Azure.ResourceManager.ContainerService.Models.ManagedClusterVerticalPodAutoscaler : bool * Azure.ResourceManager.ContainerService.Models.ManagedClusterWorkloadAutoScalerControlledValue * Azure.ResourceManager.ContainerService.Models.ManagedClusterVerticalPodAutoscalerUpdateMode -> Azure.ResourceManager.ContainerService.Models.ManagedClusterVerticalPodAutoscaler
Public Sub New (isEnabled As Boolean, controlledValues As ManagedClusterWorkloadAutoScalerControlledValue, updateMode As ManagedClusterVerticalPodAutoscalerUpdateMode)

Parameters

isEnabled
Boolean

Whether to enable VPA. Default value is false.

controlledValues
ManagedClusterWorkloadAutoScalerControlledValue

Controls which resource value autoscaler will change. Default value is RequestsAndLimits.

updateMode
ManagedClusterVerticalPodAutoscalerUpdateMode

Each update mode level is a superset of the lower levels. Off<Initial<Recreate<=Auto. For example: if UpdateMode is Initial, it means VPA sets the recommended resources in the VerticalPodAutoscaler Custom Resource (from UpdateMode Off) and also assigns resources on pod creation (from Initial). The default value is Off.

Applies to