cancel
Showing results for 
Search instead for 
Did you mean: 
VictoriaSexmer1
Flight Engineer
Flight Engineer
  • 756 Views

Helm chart questions

Jump to solution

If I want to increase the number of pods which file do I have to change? The deployment.yaml file or de values.yaml file?

Thanks

 

1 Solution

Accepted Solutions
shura
Flight Engineer
Flight Engineer
  • 737 Views

Hello @VictoriaSexmer1 

It all depends on whether the number of pod replicas is parameterized or not. If yes, then it is enough to make changes only to the value file. If not, then you need to change the deployment file. In this case, a more complex solution is possible - set the number of replicas through a parameter in the deployment file and determine the value of this parameter in the value file. This solution affects both files

Good luck

View solution in original post

3 Replies
shura
Flight Engineer
Flight Engineer
  • 738 Views

Hello @VictoriaSexmer1 

It all depends on whether the number of pod replicas is parameterized or not. If yes, then it is enough to make changes only to the value file. If not, then you need to change the deployment file. In this case, a more complex solution is possible - set the number of replicas through a parameter in the deployment file and determine the value of this parameter in the value file. This solution affects both files

Good luck

VictoriaSexmer1
Flight Engineer
Flight Engineer
  • 727 Views

Thanks for the answer. But I need to know which fields of this files have to change. Wil be these ones?

deployment.yaml --> spec.replicas

values.yaml --> replicaCount

Thank you 

Regards

shura
Flight Engineer
Flight Engineer
  • 724 Views

Hi

It is definitly correct for deployment file, but it depends of name , which used for pod's replicas in value file.  "replicaCount" looks good, but may be correct in one case and may be incorrect in other.

Good luck

Join the discussion
You must log in to join this conversation.