-
Notifications
You must be signed in to change notification settings - Fork 314
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
ARM template regression, 2020-11-01 forward requires node pool count property #1627
Comments
Looking at the ARM template reference the change was introduced with API version |
Thanks for the report, this is a regression on the changes @neumanndaniel posted. The current fastest mitigation is to use 2019-10-01. We have the fix merged and pending release. Once this fix has been released we will post back here. |
@neumanndaniel @onderyildirim The fix should be out for the affected API versions. Can you try with |
I have tried
|
@ondrejhlavacek this is for the create path correct? You're attempting to create a new managed cluster? If you're using API If you're using lower API versions, you can't create 0 count nodepools. Updates you should be fine with dropping the field. The changes basically revert the behaviour to the same one as |
I tested with the following body (on an existing MC):
|
@marwanad Thanks for the questions, i'll try to clarify. I was updating an existing cluster, namely a system node pool. As a workaround we had a script populating the {
"apiVersion": "2020-03-01",
"type": "Microsoft.ContainerService/managedClusters",
"location": "[resourceGroup().location]",
"name": "[variables('clusterName')]",
"identity": {
"type": "SystemAssigned"
},
"properties": {
"kubernetesVersion": "[parameters('kubernetesVersion')]",
"dnsPrefix": "[variables('clusterName')]",
"agentPoolProfiles": [
{
"name": "default",
"osDiskSizeGB": "[parameters('defaultNodePoolOSDiskSizeGB')]",
"vmSize": "[parameters('defaultNodePoolVMSize')]",
"osType": "Linux",
"storageProfile": "ManagedDisks",
"maxPods": 50,
"type": "VirtualMachineScaleSets",
"enableNodePublicIP": false,
"vnetSubnetID": "[parameters('defaultSubnetID')]",
"enableAutoScaling": true,
"minCount": "[parameters('defaultNodePoolMinCount')]",
"maxCount": "[parameters('defaultNodePoolMaxCount')]",
"mode": "System"
}
],
"addonProfiles": {
"httpapplicationrouting": {
"enabled": false,
"config": {}
}
},
"enableRBAC": true,
"networkProfile": {
"networkPlugin": "azure",
"loadBalancerSku": "Standard",
"serviceCidr": "10.1.0.0/16",
"dnsServiceIP": "10.1.0.10",
"dockerBridgeCidr": "172.17.0.1/16"
}
}
} |
@ondrejhlavacek hmm I'm unable to repro this on my side. I tried with system pools and a similar template. Can you file a support ticket with the info? Do you face the same issue with non-System pools? |
Closing this as the fix should be released, but if people still hit this problem we will revisit/reopen. |
Is there any documentation explaining how |
@dennis-yemelyanov correct, the behaviour for templates if you have CA on and you change the |
It seems that a recent update made the
count
node pool property required. My last ARM template usedand didn't require the
count
property.Now it seems the
count
prop is required, the deploy will otherwise fail. Furthermore it seems that it's value has to be the current node count, which is hard to get considering the node pool may just be scaling up/down.Is this a bug or a feature? How do the
count
,minCount
andmaxCount
work together?The text was updated successfully, but these errors were encountered: