[Question] KEDA what takes precedence, ScaledObject or Replica pod count?
Describe scenario
Running AKS 1.31.8 with Linux,Windows and System node pools. Enabled the KEDA add-on.
Question
Hi Quick question. I have deployed KEDA on AKS, but I am confused about one thing:
Deployments have a replica value. However, scaledobject in KEDA has the same thing.
Eg this is evident here: https://thomasvanlaere.com/posts/2024/11/windows-containers-azure-pipeline-agents-with-entra-workload-id-in-azure-kubernetes-service/
But I am wondering, what takes precedence? Do I set the replica count to 0 and set my replica count in the scaledobject?
Thanks
Action required from @aritraghosh, @julia-yin, @AllenWen-at-Azure
@wangyira would you be able to assist?
@GurdipS5 , I have implemented the same and found out that it is always scaled object replica takes higher precedence and not deployments replica. To test out, you can deploy a nginx pod with 1 replica and in scaled object, you can keep min replicas to 2 which will take higher precedence once created.
Hope it helps
This issue will now be closed because it hasn't had any activity for 7 days after stale. @GurdipS5 feel free to comment again on the next 7 days to reopen or open a new issue after that time if you still have a question/issue or suggestion.