k8wiz
Kustomize
Hard
Integration

A helmCharts entry sets replicaCount: 2 in valuesInline and lists a values file with replicaCount: 3 in additionalValuesFiles. What does Helm render?

Select your answer:

Show answer and explanation

Answer: 3, because the extra file is passed last

Explanation

Kustomize merges valuesInline into the values file, writes the result to a temporary file and passes it to Helm with -f. Each additionalValuesFiles entry follows as another -f, and Helm lets later files win. valuesMerge only controls how inline values combine with valuesFile, not with the additional files.

Read more about Kustomize