Kustomize
Easy
Concepts
What does the namespace field in a kustomization.yaml do?
Select your answer:
Show answer and explanation
Answer: Sets it on every namespaced resource, replacing existing values
Explanation
The namespace field overrides namespaces already written in the manifests. Kustomize doesn't create the Namespace object itself, so add a Namespace manifest to resources or create it separately.
More easy Kustomize questions
- How do you change an image tag in every Deployment without writing a patch?
- Which field generates a ConfigMap from files or literal values?
- Why does a ConfigMap generated by Kustomize get a name like app-config-5g2m8k7h?
- 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?