Can I temporarily disable the scaled object from scaling? #1331
|
Hi, I am curious if I can disable/enable a scaled object w/o deleting it? Maybe adding an annotation or something along the lines w/o outright deleting it? Specifically looking for something more CI/CD friendly for deployment, but want to limit exposure on the cluster of what someone needs for privileges, but may need to disable autoscaling temporarily to troubleshoot issues/set a fixed number of replicas/ etc. A deployment scaled to zero for instance will cause the HPA to ignore and do nothing. In the case of keda, if I scale deployment to zero, keda will scale it back up. Thanks! |
Replies: 3 comments 1 reply
|
Hi, unfortunately this is currently not possible. But feel free to open an issue/proposal for this! |
|
Has something changed? |
|
It is possible with: metadata:
annotations:
autoscaling.keda.sh/paused: "true"find docs pausing autoscaling |
Hi, unfortunately this is currently not possible. But feel free to open an issue/proposal for this!