title: Kubernetes/Ingress Nginx/Cert Manager certificates have namespaces?
body: <p>I am trying to deploy the "cert-manager" (<a href="https://github.com/jetstack/cert-manager" rel="nofollow noreferrer">https://github.com/jetstack/cert-manager</a>) project which is the successor to "kube-lego". I'm finding that the certificates don't match what is being created, and I'm wondering if anybody else has tried this before.</p>
  
  <p>I am creating a tls secretName with "monitoring-xxx-com", and in the ingress-nginx logs I find that it's trying to search for namespace/monitoring-xxx-com and not finding what it expects.</p>
  
  <p>I am wondering whether this is because ingress-nginx is trying to use the pods namespace automatically and cert-manager is creating certs without a namespace, therefore that's why the cert can never be found.</p>
  
  <pre><code>error obtaining PEM from secret kube-system/monitoring-xxx-com: error 
  retrieving secret kube-system/monitoring-xxx-com: secret kube-
  system/monitoring-xxx-com was not found
  </code></pre>
  
  <p>and in the certificate created by "cert-manager":</p>
  
  <pre><code>Issuer Ref:
    Kind:       ClusterIssuer
    Name:       letsencrypt-staging
  Secret Name:  monitoring-xxx-com
  </code></pre>