Support for AgentPoolProfiles with initial count of 0
Describe the request Sometimes we need to stand up clusters where there are agent pool profiles that start out with 0 machines. In this case we'd like to specify that as part of cluster configuration. Once the cluster is up we'll spin up and down those VirtualScaleSets as work load adjusts.
Explain why AKS Engine needs it AKS Engine provisions the VirtualScaleSets, and needs to allow those to be provisioned with initially 0 instances. Right now trying to set a size of 0 meets with
Error: validating API model after populating values: AgentPoolProfile count needs to be in the range [1,100]
Describe the solution you'd like I would like 0 to be a valid value for "count" for a agentPoolProfiles
Describe alternatives you've considered Manually adjusting the count after cluster creation. This is kind of bad because if some error occurs after aks-engine and before the node spin-down, we're paying for machines we don't even want.
Additional context
👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it.
This is related to https://github.com/Azure/aks-engine/issues/530 that was automatically closed due to inactivity. Thanks for reopening the issue. As a workaround, you can use the cluster-autoscaler with min_nodes: 0 as suggested at https://github.com/Azure/aks-engine/issues/2079#issuecomment-538476647.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
not stale
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
not stale
not stale
I assume this is still desired? Are folks working around the limitations of creating a 0 node pool in AKS Engine by configuring cluster-autoscaler w/ a min_nodes: 0 setting?
No plans to do this work. If there are long-term needs to bootstrap a 0-node cluster using self-managed Kubernetes on Azure, I recommend asking here:
https://github.com/kubernetes-sigs/cluster-api-provider-azure/issues