title: Error using Let's Encrypt in Ingress:Issuing certificate as Secret does not exist using
body: <p>I followed this tutorial <a href="https://www.digitalocean.com/community/tutorials/how-to-set-up-an-nginx-ingress-with-cert-manager-on-digitalocean-kubernetes" rel="nofollow noreferrer">https://www.digitalocean.com/community/tutorials/how-to-set-up-an-nginx-ingress-with-cert-manager-on-digitalocean-kubernetes</a> to issue a SSL certificate for my ingress using cert manager and Let's encrypt and I run this error  <code>Issuing certificate as Secret does not exist</code>. Is my configuration wrong? It's a Minikube local cluster.</p>
  <p>staging_issuer.yaml</p>
  <pre><code>apiVersion: cert-manager.io/v1alpha2
  kind: ClusterIssuer
  metadata:
   name: letsencrypt-staging
   namespace: cert-manager
  spec:
   acme:
     # The ACME server URL
     server: https://acme-staging-v02.api.letsencrypt.org/directory
     # Email address used for ACME registration
     email: email_address
     # Name of a secret used to store the ACME account private key
     privateKeySecretRef:
       name: letsencrypt-staging
     # Enable the HTTP-01 challenge provider
     solvers:
     - http01:
         ingress:
           class:  nginx
  </code></pre>
  <p>ingress.yaml</p>
  <pre><code>apiVersion: networking.k8s.io/v1beta1
  kind: Ingress
  metadata:
    name: echo-ingress
    annotations:
      kubernetes.io/ingress.class: &quot;nginx&quot;
      nginx.ingress.kubernetes.io/rewrite-target: /
      nginx.ingress.kubernetes.io/proxy-read-timeout: &quot;12h&quot;
      cert-manager.io/cluster-issuer: &quot;letsencrypt-staging&quot;
  spec:
    tls:
    - hosts:
      - frontend.info
      - backend.info
      secretName: echo-tls
    rules:
    - host: frontend.info
      http:
        paths:
        - backend:
            serviceName: frontend
            servicePort: 80
    - host: backend.info
      http:
        paths:
        - backend:
            serviceName: backend
            servicePort: 8080
  </code></pre>
  <p>kubectl describe certificate</p>
  <pre><code>Name:         echo-tls
  Namespace:    default
  Labels:       &lt;none&gt;
  Annotations:  &lt;none&gt;
  API Version:  cert-manager.io/v1beta1
  Kind:         Certificate
  Metadata:
    Creation Timestamp:  2021-01-26T09:29:54Z
    Generation:          1
    Managed Fields:
      API Version:  cert-manager.io/v1alpha2
      Fields Type:  FieldsV1
      Manager:    controller
      Operation:  Update
      Time:       2021-01-26T09:29:55Z
    Owner References:
      API Version:           extensions/v1beta1
      Block Owner Deletion:  true
      Controller:            true
      Kind:                  Ingress
      Name:                  echo-ingress
      UID:                   &lt;UID&gt;
    Resource Version:        423812
    UID:                     &lt;UID&gt;
  Spec:
    Dns Names:
      frontend.info
      backend.info
    Issuer Ref:
      Group:      cert-manager.io
      Kind:       ClusterIssuer
      Name:       letsencrypt-staging
    Secret Name:  echo-tls
  Status:
    Conditions:
      Last Transition Time:        2021-01-26T09:29:54Z
      Message:                     Issuing certificate as Secret does not exist
      Reason:                      DoesNotExist
      Status:                      True
      Type:                        Issuing
      Last Transition Time:        2021-01-26T09:29:54Z
      Message:                     Issuing certificate as Secret does not exist
      Reason:                      DoesNotExist
      Status:                      False
      Type:                        Ready
    Next Private Key Secret Name:  echo-tls-hg5tt
  Events:
    Type    Reason     Age    From          Message
    ----    ------     ----   ----          -------
    Normal  Issuing    7h56m  cert-manager  Issuing certificate as Secret does not exist
    Normal  Generated  7h56m  cert-manager  Stored new private key in temporary Secret resource &quot;echo-tls-hg5tt&quot;
    Normal  Requested  7h56m  cert-manager  Created new CertificateRequest resource &quot;echo-tls-hmz86
  </code></pre>