What is Kustomize `configMapGenerator` and why is it useful?
IntermediateScenarioHelm, operators and GitOps
Answer
Situation read → Config changes must trigger rollouts.
What I'd do →
- Define
configMapGeneratorin kustomization.yaml - Kustomize appends a hash to the name
- References in Deployments are rewritten
- A content change creates a new name, so pods roll
- Old ConfigMaps can be pruned
Why → Hash suffixes tie pod revisions to config versions.
Interview tip → Cheap and neat approach for rollbacks.
More on Helm, operators and GitOps
A `helm upgrade` failed halfway. How do you see state and recover?BeginnerHelm says `cannot re-use a name that is still in use` or `another operation is in progress`. What now?IntermediateHow do you review what a Helm upgrade will change before running it?IntermediateWhere do you keep chart values for multiple environments?BeginnerWhat does `helm template` do and how is it different from `helm install`?BeginnerA Helm chart upgrade changed an immutable field and failed. How do you proceed?Advanced