Some values are secret, some are not, and both are needed per environment. How do you lay out the files?
IntermediateScenarioValues & Environments
Answer
Situation read → Mixing them forces either encrypting everything (unreadable reviews) or leaking secrets.
What I'd do →
values-prod.yamlfor plain config,secrets.prod.yamlencrypted with SOPS (only secret keys).- Use the same key structure so they deep-merge:
postgres.auth.passwordlives in the secrets file only. - Deploy with
-f values-prod.yaml -f secrets://secrets.prod.yaml. .sops.yamlcreation rules choose the KMS key per environment.
Why → Plain config stays reviewable; secrets stay encrypted at rest in Git.
Interview tip → Mention that SOPS encrypts values, not keys, so diffs still show which secret changed.
More on Values & Environments
Dev, staging and prod values files have drifted and nobody knows which settings differ intentionally. What do you do?IntermediateA deploy pipeline uses `--reuse-values` and a new chart version just broke production. Why, and what do you change?AdvancedYou need a per-environment image tag set by CI, while everything else lives in Git. How do you wire it?BeginnerA value that should be `false` in prod keeps rendering as enabled. Where do you look?IntermediateDifferent clusters need different storage classes and ingress classes. How do you keep the chart portable?IntermediateA developer passes 20 `--set` flags in a shell script. What would you change?Beginner