Kubernetes-acs-engine-autoscaler icon indicating copy to clipboard operation
Kubernetes-acs-engine-autoscaler copied to clipboard

Scale agentpool based on label/nodeSelectors

Open oryagel opened this issue 7 years ago • 4 comments

Hi. We have two agent pools, let's call them pool1 and pool2. I have a pod with nodeSelector: {agentpool: pool2}. The autoscaler removed the nodes of pool2. Now the log of the autoscaler says KubePod(default, some-pod-name) fits on k8s-pool1-12212174-0. This will not work since that specific pod can't run on this specific node due to the nodeSelector configuration.

Thanks

oryagel avatar Jul 21 '17 16:07 oryagel

Hi @oryagel, Currently nodeSelectors are not supported by the autoscaler. But you can use the wbuchwalter/kubernetes-acs-engine-autoscaler:labels image which does have beta support.

wbuchwalter avatar Jul 21 '17 17:07 wbuchwalter

Thanks. I'll try that. When do you plan to merge into master?

oryagel avatar Jul 22 '17 08:07 oryagel

'acs-engine' added a feature recently, where you can declare the labels for your nodes in the json file directly. I need to add support for this instead of reading the labels from live nodes. Then I should be able to merge.

wbuchwalter avatar Jul 22 '17 12:07 wbuchwalter

Great product! I would love to see this!

nalthoff avatar Aug 03 '17 21:08 nalthoff