Kustomize
Easy
Generation
Why does a ConfigMap generated by Kustomize get a name like app-config-5g2m8k7h?
Select your answer:
Show answer and explanation
Answer: Kustomize appends a hash of the data, so new data gives a new name
Explanation
Because the name changes whenever the data changes, and Kustomize updates every reference to it, Deployments that use the ConfigMap roll out with the new values. generatorOptions.disableNameSuffixHash: true keeps a fixed name.
More easy Kustomize questions
- Which command builds a kustomization with the standalone Kustomize CLI?
- What does commonAnnotations do?
- Which field is the current way to patch resources in Kustomize v5?
- Which command writes a kustomization.yaml that lists the YAML files in the current directory?
- What does kubectl delete -k on an overlay remove?
- What does the replicas field in a kustomization.yaml do?