Closed jessica-hofmeister closed 4 months ago
Hi @jessica-hofmeister
This is the expected result. When you enabled autoscaling, you'd need to mention the max and min node numbers by using max_node_count and min_node_count labels. And no need to specify --node-count
which is ignored.
If you didn't set those labels, the default value is min=1 and max=2.
On a magnum cluster with autoscaling enabled and a max node count of 5, I ran 3 busybox containers with high request values to trigger autoscaling. This worked well for the first 2 containers: the first ran on the initial worker, and the second triggered another worker to spawn. The third container however just sits in a
Pending
stageand a describe on the
Pending
pod shows the following events:The events on the
kube-system/cluster-autoscaler-status
configmap areSo it seems like there is something wrong with the cluster autoscaler since there should be 3 more nodes able to be spawned before this behavior happens.
Here is the command I used to create the cluster (I also tried one with 7 worker nodes just for kicks)