kubernetes / autoscaler

Autoscaling components for Kubernetes
Apache License 2.0
8.04k stars 3.96k forks source link

autoscaller donot work after changing min and max limits #943

Closed mohmagdy closed 6 years ago

mohmagdy commented 6 years ago

i have cluster autoscaler installed , initially my max cluster size was 2 and then i removed the autoscaler and reinstall it with higher cluster size of 10 , however the autoscaling donot work and i am getting below error in autoscaler pod logs

static_autoscaler.go:245] Failed to scale up: failed to increase node group size: ValidationError: New SetDesiredCapacity value 3 is above max value 2 for the AutoScalingGroup.

kubectl version Client Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.11", GitCommit:"b13f2fd682d56eab7a6a2b5a1cab1a3d2c8bdd55", GitTreeState:"clean", BuildDate:"2017-11-25T18:34:52Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.11", GitCommit:"b13f2fd682d56eab7a6a2b5a1cab1a3d2c8bdd55", GitTreeState:"clean", BuildDate:"2017-11-25T17:51:39Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}

and autosacler yaml file ` serviceAccountName: cluster-autoscaler containers:

r-divakaran-hrs commented 6 years ago

Hey @mohmagdy how did you create the kubernetes cluster, using KOPS !? If yes, verify if the min and max size of nodes set via KOPS matches to what is configured in autoscaler.

aleksandra-malinowska commented 6 years ago

On AWS, ASG limits must match (or exceed) those set for CA. Also see #647 for more information about this setup.