Skip to content

Replica number changes on new deployments #26

Discussion options

You must be logged in to vote

From a grunt

Hey person,

I've asked for some guidance on this, and here's some details:

The deployment is getting reset by the helm chart, specifically the replicaCount input. HPA works by overwriting the replica count of the deployment, but there's no ignore_changes terraform type behaviour in helm. Therefore, the helm chart just overwrites the deployment every time based on what is in the helm chart.

It might best to use a run_cmd call in terragrunt that uses kubectl to get the current value of the replica count on the Deployment and update the input value to use that.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gruntwork-support
Comment options

Answer selected by gruntwork-support
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant