Different clusters need different storage classes and ingress classes. How do you keep the chart portable?
IntermediateScenarioValues & Environments
Answer
Situation read → EKS uses gp3, the on-prem cluster uses longhorn; ingress classes differ too.
What I'd do →
- Expose
persistence.storageClassandingress.classNamein values; renderstorageClassNameonly when set so the cluster default applies otherwise. - Support
global.storageClassso subcharts share it. - Put cluster-specific values in a per-cluster file (
clusters/eks-prod.yaml) layered under env files.
Why → Cluster facts are deploy-time inputs, not chart constants.
Interview tip → Note that an empty storageClassName: "" disables dynamic provisioning, which is why you omit it rather than render empty.
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?IntermediateA developer passes 20 `--set` flags in a shell script. What would you change?BeginnerYou must deploy to a region with an air-gapped cluster. How do you handle values and images?Advanced