aks-engine icon indicating copy to clipboard operation
aks-engine copied to clipboard

Support for AgentPoolProfiles with initial count of 0

Open davis-x opened this issue 7 years ago • 9 comments

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

davis-x avatar Nov 13 '19 19:11 davis-x

👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it.

welcome[bot] avatar Nov 13 '19 19:11 welcome[bot]

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.

palmerabollo avatar Nov 18 '19 22:11 palmerabollo

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.

stale[bot] avatar Jan 19 '20 00:01 stale[bot]

not stale

palmerabollo avatar Jan 20 '20 08:01 palmerabollo

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.

stale[bot] avatar Mar 20 '20 08:03 stale[bot]

not stale

palmerabollo avatar Mar 20 '20 09:03 palmerabollo

not stale

palmerabollo avatar Apr 08 '20 22:04 palmerabollo

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?

jackfrancis avatar Sep 17 '20 22:09 jackfrancis

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

jackfrancis avatar Oct 01 '20 22:10 jackfrancis