diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-07-02-preview/managedClusters.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-07-02-preview/managedClusters.json index ed92d3008326..32699f9f0e97 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-07-02-preview/managedClusters.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/preview/2022-07-02-preview/managedClusters.json @@ -6712,6 +6712,9 @@ "properties": { "keda": { "$ref": "#/definitions/ManagedClusterWorkloadAutoScalerProfileKeda" + }, + "verticalPodAutoscaler": { + "$ref": "#/definitions/ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler" } } }, @@ -6727,6 +6730,78 @@ "required": [ "enabled" ] + }, + "ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "description": "Whether to enable VPA. Default value is false.", + "default": false + }, + "controlledValues": { + "type": "string", + "enum": [ + "RequestsAndLimits", + "RequestsOnly" + ], + "x-ms-enum": { + "name": "ControlledValues", + "modelAsString": true, + "values": [ + { + "value": "RequestsAndLimits", + "description": "Autoscaler will control resource requests and limits." + }, + { + "value": "RequestsOnly", + "description": "Autoscaler will control resource requests only." + } + ] + }, + "default": "RequestsAndLimits", + "description": "Controls which resource value autoscaler will change. Default value is RequestsAndLimits." + }, + "updateMode": { + "type": "string", + "enum": [ + "Off", + "Initial", + "Recreate", + "Auto" + ], + "x-ms-enum": { + "name": "UpdateMode", + "modelAsString": true, + "values": [ + { + "value": "Off", + "description": "Autoscaler never changes pod resources but provides recommendations." + }, + { + "value": "Initial", + "description": "Autoscaler only assigns resources on pod creation and doesn't change them during the lifetime of the pod." + }, + { + "value": "Recreate", + "description": "Autoscaler assigns resources on pod creation and updates pods that need further scaling during their lifetime by deleting and recreating." + }, + { + "value": "Auto", + "description": "Autoscaler chooses the update mode. Autoscaler currently does the same as Recreate. In the future, it may take advantage of restart-free mechanisms once they are available." + } + ] + }, + "default": "Off", + "title": "The update mode of the autoscaler.", + "description": "Each update mode level is a superset of the lower levels. Off