2

Kubernetes 1.18 has a very nice ability to change auto-scaling going up through the behavior and scaleUp set. For 1.17, there's a way to control downscaling. Is there a parallel way to scale up faster? We are expecting very variable loads and our cluster isn't scaling up fast enough.

I am not sure what other info to include. I've been searching through the docs, but I cannot find anything that points me in the right direction.

Rico
  • 58,485
  • 12
  • 111
  • 141

1 Answers1

2

Not really.

Assuming you are referring to HPAs, you can define a behavior scaleUp Policy only if you are using K8s 1.18 or later (v2beta2 HPA API). For example:

behavior:
  scaleDown:
    stabilizationWindowSeconds: 300
    policies:
    - type: Percent
      value: 100
      periodSeconds: 15
  scaleUp: 
    stabilizationWindowSeconds: 0
    policies:
    - type: Percent
      value: 100
      periodSeconds: 15
    - type: Pods
      value: 4
      periodSeconds: 15
    selectPolicy: Max

Autoscaling API

✌️

Rico
  • 58,485
  • 12
  • 111
  • 141