Interview Prep/Helm/Values & Environments

A values file accidentally set `resources: {}` in prod and pods have no limits. How do you prevent this class of mistake?

IntermediateScenarioValues & Environments
Answer

Situation read → An override erased the safe defaults; nothing complained.

What I'd do →

  1. Add schema constraints: resources.limits.memory required for the API in values.schema.json.
  2. Enforce at admission (Kyverno require-limits policy) so manifests without limits are rejected.
  3. Add a CI policy check on rendered output (Conftest) per environment.
  4. Use LimitRange defaults in namespaces as a last line.

Why → Schema stops bad values early; admission policy stops bad manifests regardless of source.

Interview tip → Say "schema plus admission policy" for guardrails.

All Helm questions Roadmap: Helm

More on Values & Environments