Skip to content

Combination of replicas definition and HPA keeps scaling pods between same nums. #5105

Answered by jessesuen
nakkoh asked this question in Q&A
Discussion options

You must be logged in to vote

This behavior is expected. Your git desired state conflicts with a controller adjusting the replicas so it's expected that they will fight over the correct value. You should omit replicas from your deployment if you wish it to be controlled by HPA. See:

https://argoproj.github.io/argo-cd/user-guide/best_practices/#leaving-room-for-imperativeness

Replies: 1 comment 1 reply

Comment options

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

Answer selected by jessesuen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #5105 on December 22, 2020 21:38.