Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MixSku Pool Autoscale mode API Change #29052

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
{
"parameters": {
"api-version": "2024-04-02-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "rg1",
"resourceName": "clustername1",
"agentPoolName": "agentpool1",
"parameters": {
"properties": {
"orchestratorVersion": "1.29.0",
"osType": "Linux",
"tags": {
"name1": "val1"
},
"nodeLabels": {
"key1": "val1"
},
"nodeTaints": [
"Key1=Value1:NoSchedule"
],
"type": "VirtualMachines",
"virtualMachinesProfile": {
"scale": {
"autoscale": [
{
"sizes": [
"Standard_D2_v2",
"Standard_D2_v3"
],
"minCount": 1,
"maxCount": 5
}
]
}
}
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1/agentPools/agentpool1",
"type": "Microsoft.ContainerService/managedClusters/agentPools",
"name": "agentpool1",
"properties": {
"provisioningState": "Succeeded",
"orchestratorVersion": "1.29.0",
"currentOrchestratorVersion": "1.29.0",
"maxPods": 110,
"osType": "Linux",
"tags": {
"name1": "val1"
},
"nodeLabels": {
"key1": "val1"
},
"nodeTaints": [
"Key1=Value1:NoSchedule"
],
"type": "VirtualMachines",
"virtualMachinesProfile": {
"scale": {
"autoscale": [
{
"sizes": [
"Standard_D2_v2",
"Standard_D2_v3"
],
"minCount": 1,
"maxCount": 5
}
]
}
},
"virtualMachineNodesStatus": [
{
"size": "Standard_D2_v2",
"count": 1
},
{
"size": "Standard_D2_v3",
"count": 2
}
],
"nodeImageVersion": "AKSUbuntu-1804gen2containerd-2021.09.11"
}
}
},
"201": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1/agentPools/agentpool1",
"type": "Microsoft.ContainerService/managedClusters/agentPools",
"name": "agentpool1",
"properties": {
"provisioningState": "Creating",
"orchestratorVersion": "1.29.0",
"currentOrchestratorVersion": "1.29.0",
"maxPods": 110,
"osType": "Linux",
"tags": {
"name1": "val1"
},
"nodeLabels": {
"key1": "val1"
},
"nodeTaints": [
"Key1=Value1:NoSchedule"
],
"type": "VirtualMachines",
"virtualMachinesProfile": {
"scale": {
"autoscale": [
{
"sizes": [
"Standard_D2_v2",
"Standard_D2_v3"
],
"minCount": 1,
"maxCount": 5
}
]
}
},
"virtualMachineNodesStatus": [
{
"size": "Standard_D2_v2",
"count": 1
},
{
"size": "Standard_D2_v3",
"count": 2
}
],
"nodeImageVersion": "AKSUbuntu-1804gen2containerd-2021.09.11"
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1291,6 +1291,9 @@
},
"Create Agent Pool with VirtualMachines pool type": {
"$ref": "./examples/AgentPoolsCreate_TypeVirtualMachines.json"
},
"Create Agent Pool with VirtualMachines pool type with autoscaling enabled": {
"$ref": "./examples/AgentPoolsCreate_TypeVirtualMachines_Autoscale.json"
}
}
},
Expand Down Expand Up @@ -4180,7 +4183,15 @@
"$ref": "#/definitions/ManualScaleProfile"
},
"x-ms-identifiers": [],
"description": "Specifications on how to scale the VirtualMachines agent pool to a fixed size."
"description": "Specifications on how to scale the VirtualMachines agent pool to a fixed size. Currently, at most one ManualScaleProfile is allowed."
},
"autoscale": {
"type": "array",
"items": {
"$ref": "#/definitions/AutoScaleProfile"
},
"x-ms-identifiers": [],
"description": "Specifications on how to auto-scale the VirtualMachines agent pool within a predefined size range. Currently, at most one AutoScaleProfile is allowed."
}
},
"description": "Specifications on how to scale a VirtualMachines agent pool."
Expand All @@ -4193,18 +4204,39 @@
"items": {
"type": "string"
},
"description": "The list of allowed vm sizes. AKS will use the first available one when scaling. If a VM size is unavailable (e.g. due to quota or regional capacity reasons), AKS will use the next size."
"description": "The list of allowed vm sizes e.g. ['Standard_E4s_v3', 'Standard_E16s_v3', 'Standard_D16s_v5']. AKS will use the first available one when scaling. If a VM size is unavailable (e.g. due to quota or regional capacity reasons), AKS will use the next size."
},
"count": {
"type": "integer",
"format": "int32",
"minimum": 0,
"maximum": 1000,
"description": "Number of nodes."
}
},
"description": "Specifications on number of machines."
},
"AutoScaleProfile": {
"type": "object",
"properties": {
"sizes": {
"type": "array",
"items": {
"type": "string"
},
"description": "The list of allowed vm sizes e.g. ['Standard_E4s_v3', 'Standard_E16s_v3', 'Standard_D16s_v5']. AKS will use the first available one when auto scaling. If a VM size is unavailable (e.g. due to quota or regional capacity reasons), AKS will use the next size."
},
"minCount": {
"type": "integer",
"format": "int32",
"description": "The minimum number of nodes of the specified sizes."
},
"maxCount": {
"type": "integer",
"format": "int32",
"description": "The maximum number of nodes of the specified sizes."
}
},
"description": "Specifications on auto-scaling."
},
"VirtualMachineNodesStatus": {
"type": "array",
"items": {
Expand Down