Certified GitOps Associate (CGOA) free question 9 / 10 · Domain 5: Tooling
Which set of features does the Kubernetes documentation list for Kustomize?
- Generating resources from other sources, setting cross-cutting fields, and composing and customizing resources
- Comparing the live cluster with a repository, and reverting a change that was made by hand in the cluster
- Rendering Go templates with values from a values file, and packaging the result into versioned archives
- Scanning an image registry for new tags, and updating the image tag in the manifests that are stored in Git
Show the answer and explanation
Answer: A
Why this is correct
The Overview of Kustomize section says Kustomize is a tool for customizing Kubernetes configurations. It has features to manage application configuration files: generating resources from other sources, setting cross-cutting fields for resources, and composing and customizing collections of resources. The page then shows configMapGenerator and secretGenerator for generating resources, and patches for customizing them.
Why the other options are wrong
"Rendering Go templates with values from a values file, and packaging the result into versioned archives" … That describes Helm, whose chart templates are written in the Go template language and whose charts are packaged into versioned archives.
"Comparing the live cluster with a repository, and reverting a change that was made by hand in the cluster" … That is the work of a reconciliation engine. Kustomize is a tool for customizing Kubernetes configurations.
"Scanning an image registry for new tags, and updating the image tag in the manifests that are stored in Git" … That is the work of Flux image automation, which the Flux documentation describes in its image update guide.
Key points
Kustomize generates resources with configMapGenerator and secretGenerator, and customizes them with patches.