How do I use the Resize Server Group stage in Spinnaker when auto scaling is on?

6/10/2021

I have a server group in Spinnaker with auto scaling on.

When I resize a cluster in the UI it asks for a desired min and max.

If I create a resize stage there is only one value allowed. The stage will execute and the cluster will be resized to the desired amount. The auto scaling will see this and resize the cluster.

Example: Cluster: Min=1, Max=3

Resize Cluster: 5

The stage will run and the size will go to 5 but the min/max are unchanged so the auto scaling will return the size to 1.

Stage JSON

{
  "action": "scale_up",
  "capacity": {},
  "cloudProvider": "kubernetes",
  "cloudProviderType": "kubernetes",
  "cluster": "...",
  "credentials": "...",
  "name": "Resize Server Group",
  "namespaces": [
    "..."
  ],
  "resizeType": "incr",
  "scaleNum": 5,
  "target": "current_asg_dynamic",
  "type": "resizeServerGroup"
}

Thanks!

-- Morgan Eason
kubernetes
spinnaker

0 Answers