Skip to content

Deployment replica vs ScaledObject what takes precedence? #6854

Answered by rickbrouwer
GurdipS5 asked this question in General
Discussion options

You must be logged in to vote

When a scaledObject becomes active it determines the number of replicas. The previously given number of replicas in the deployment.yaml is then overruled. You can give this a value that you may like if you delete a scaledObject so that it then falls back to your default replicas.

There are also another options, like permanently remove the default replicas from the deployment manifest. This forces the deployment to rely solely on KEDA’s autoscaling mechanism, ensuring that it always scales according to the minReplicaCount specified in the ScaledObject configuration. However, it’s essential to ensure that KEDA’s autoscaling is enabled and properly configured.

That being said, you can also c…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by zroubalik
Comment options

You must be logged in to vote
1 reply
@zroubalik
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants