Interview Prep/Helm/Values & Environments

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 →

  1. values-prod.yaml for plain config, secrets.prod.yaml encrypted with SOPS (only secret keys).
  2. Use the same key structure so they deep-merge: postgres.auth.password lives in the secrets file only.
  3. Deploy with -f values-prod.yaml -f secrets://secrets.prod.yaml.
  4. .sops.yaml creation 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.

All Helm questions Roadmap: Helm

More on Values & Environments