Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Omit replicas for components with HPA enabled #3346

Merged

Conversation

lpetrazickisupgrade
Copy link
Contributor

ArgoCD cannot handle a disagreement in replica count between a Deployment/Statefulset definition and HorizontalPodAutoscaler definition. When an HPA is enabled, it is better to omit the replicas field on the Deployment/StatefulSet and let the HPA manage it instead

Signed-off-by: Leo Petrazickis <lpetrazickis@upgrade.com>
@CLAassistant
Copy link

CLAassistant commented Jun 7, 2024

CLA assistant check
All committers have signed the CLA.

@lpetrazickisupgrade lpetrazickisupgrade marked this pull request as ready for review June 7, 2024 17:17
@lpetrazickisupgrade lpetrazickisupgrade requested a review from a team as a code owner June 7, 2024 17:17
Copy link
Contributor

@simonswine simonswine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for contributing that makes perfect sense. If you would like a release with this change, also increment the version:

@simonswine simonswine merged commit 25f0771 into grafana:main Jun 10, 2024
16 checks passed
@lpetrazickisupgrade lpetrazickisupgrade deleted the lp/omit-replicas-when-hpa branch June 10, 2024 14:47
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants