How to pause zero-scaling while my helm chart is upgrading #6805
-
Hi. I have a StatefulSet, and I've configured KEDA (2.17.1) to perform zero scaling based on a PostgreSQL rule. When I run helm upgrade, KEDA sets the number of replicas to 0 without waiting for the helm upgrade to complete. Is there a way to configure KEDA to wait for a successful deployment of the helm release before enabling zero scaling? I found ways to temporarily disable the ScaledObject during the upgrade, but this solution doesn't seem very elegant to me. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I don't quite understand what you mean, but I think you mean that KEDA is already doing something while your upgrade of your Chart is still running. If you don't want KEDA to do that, you can put your scaledObject in a higher syncwave or hook, so that your upgrade is done first and then the scaledobject is deployed. Here you can find information about Helm Hooks and if you are working with ArgoCD possibly on Sync waves here. Perhaps this is what you are looking for? |
Beta Was this translation helpful? Give feedback.
I don't quite understand what you mean, but I think you mean that KEDA is already doing something while your upgrade of your Chart is still running.
If you don't want KEDA to do that, you can put your scaledObject in a higher syncwave or hook, so that your upgrade is done first and then the scaledobject is deployed.
Here you can find information about Helm Hooks and if you are working with ArgoCD possibly on Sync waves here.
Perhaps this is what you are looking for?