title: How can I create a namespace with kustomize?
body: <p>I've a simple project that use kustomize like this:</p>
  
  <pre><code>base/
    namespace.yaml
    kustomization.yaml
    service.yaml
  </code></pre>
  
  <p>With <code>kustomization.yaml</code> is:</p>
  
  <pre><code>resources:
    - namespace.yaml
    - service.yaml
  namespace: my_wanted_namespace
  </code></pre>
  
  <p>And <code>namespace.yaml</code> is:</p>
  
  <pre><code>apiVersion: v1
  kind: Namespace
  metadata:
    name: default
  </code></pre>
  
  <p>The problem is that when I do: <code>kustomize build ./base</code></p>
  
  <p>I've this:</p>
  
  <pre><code>apiVersion: v1
  kind: Namespace
  metadata:
    name: default
  </code></pre>
  
  <p>How can I have</p>
  
  <pre><code>apiVersion: v1
  kind: Namespace
  metadata:
    name: my_wanted_namespace
  </code></pre>
  
  <p>Thanks.</p>