Pod Restarts Every 15 Minutes on GKE with ScaledObject 'metrics-api' #6771
Unanswered
RomainGIRAUDEAU
asked this question in
Q&A / Need Help
Replies: 0 comments
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.
-
Hey,
I'm running KEDA v2.17 on Google Kubernetes Engine (GKE) Autopilot, and I’ve observed that my deployment scales down to 1 replica after about 15 minutes, even though my API consistently returns a static value of 4.
I'm using the metrics-api trigger. The API is a dummy endpoint that always returns this payload:
{ "replicaCount": 4 }I expected the deployment to stay at 4 replicas indefinitely, but it consistently scales down after a while. There are no errors in keda-operator or keda-operator-metrics-apiserver, and the API is healthy (no crashes, OOMs, etc.).
ScaledObject Configuration
Why is the deployment scaling down to 1 after 15 minutes, despite the metrics-api returning a constant value of 4? Is there something I'm missing about how KEDA interprets or persists external metrics?
Thanks for your assistance!
Beta Was this translation helpful? Give feedback.
All reactions