title: Uniqueness of deployment definition in kubernetes namespace
body: <p>We have multiple environments like dev, qa, prepod etc. We have namespaces based on environment. Right now we name the service with environment as suffix. e.g.,</p>
  
  <pre><code>    apiVersion: apps/v1
      kind: Deployment
      metadata:
        name: k8s-order-service-develop-deployment
        namespace: dev
        labels:
          k8s-app: k8s-order-service-develop
      spec:
        selector:
          matchLabels:
            k8s-app: k8s-order-service-develop
  </code></pre>
  
  <p>Instead can I use the following in all namespaces? ie whether <code>deployment</code> is unique per namespace?</p>
  
  <p>in dev env:</p>
  
  <pre><code>    apiVersion: apps/v1
      kind: Deployment
      metadata:
        name: k8s-order-service-deployment
        namespace: dev
        labels:
          k8s-app: k8s-order-service
      spec:
        selector:
          matchLabels:
            k8s-app: k8s-order-service
  </code></pre>
  
  <p>in qa env:</p>
  
  <pre><code>apiVersion: apps/v1
      kind: Deployment
      metadata:
        name: k8s-order-service-deployment
        namespace: qa
        labels:
          k8s-app: k8s-order-service
      spec:
        selector:
          matchLabels:
            k8s-app: k8s-order-service
  </code></pre>