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 →
- Add schema constraints:
resources.limits.memoryrequired for the API invalues.schema.json. - Enforce at admission (Kyverno
require-limitspolicy) so manifests without limits are rejected. - Add a CI policy check on rendered output (Conftest) per environment.
- 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.
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