KEDA does not scale up from 0 during rollout causing deployment failure #7257
Unanswered
Jijithnair
asked this question in
Q&A / Need Help
Replies: 1 comment 4 replies
-
|
Are you looking for something like this? You could add an annotation to pause a ScaledObject at a given number, which it will then scale to. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We use KEDA (v2.18) with a Prometheus trigger based on Istio request metrics:
When the Deployment is already at 0 replicas and we deploy a new version, the rollout never starts because KEDA does not scale the workload back up. The reason is, Prometheus returns 0 during deploy (if there is no traffic), and KEDA never sees trigger “activity” therefore never scales 0→1.
kubectl rollout status/Helm--waitfails, due to which our deployment pipelines would complain that release was not successful and proceed to rollback, since there are no pods to help in asserting that the rollout was successful or healthy.The service under scope is not a production workload and is something that needs to be scaled up only if there is traffic, hence the decision of scaling down to 0 and using Prometheus trigger for traffic detection via Istio metric.
Is there an existing or recommended approach in KEDA to ensure Deployment rollouts succeed when replicas are at 0, given that the Prometheus metric remains 0 until a pod exists? I would be looking at something like:
If not, is this a known limitation and should we open a feature request?
Beta Was this translation helpful? Give feedback.
All reactions