Which Value Wins?
The chart's values.yaml sets replicaCount: 1. You run helm install web ./chart -f prod.yaml -f extra.yaml --set replicaCount=4. prod.yaml sets replicaCount: 2 and extra.yaml sets replicaCount: 3. How many replicas does the release get?
values.yaml
replicaCount: 1
helm install web ./chart -f prod.yaml -f extra.yaml --set replicaCount=4
prod.yaml
replicaCount: 2
extra.yaml
replicaCount: 3
Choose one answer
4, because --set overrides every values file.
--set
3, because the last -f file wins over --set.
-f
1, because the chart default always wins.
2, because the first -f file wins.