# What does the namespace field in a kustomization.yaml do?

Kustomize, Easy (Beginner), Concepts. https://k8wiz.com/uquiz/what-does-the-namespace-field-in-a-kustomizationyaml-do

- A. Creates the Namespace object first if it doesn't exist in the cluster yet
- B. Sets the namespace only on resources that don't have one
- C. Sets it on every namespaced resource, replacing existing values
- D. Limits kubectl apply -k to objects in that namespace

**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.
