<p>I can't seem to get cert-manager working:</p>
<pre><code>$ kubectl get certificates -o wide
NAME         READY   SECRET       ISSUER        STATUS                                         AGE
tls-secret   False   tls-secret   letsencrypt   Issuing certificate as Secret does not exist   115m

$ kubectl get CertificateRequest -o wide
NAME               READY   ISSUER        STATUS                                                                                        AGE
tls-secret-xxxx   False   letsencrypt   Referenced &quot;ClusterIssuer&quot; not found: clusterissuer.cert-manager.io &quot;letsencrypt&quot; not found   113m
</code></pre>
<p>my certificate.yaml is :</p>
<pre><code>apiVersion: cert-manager.io/v1alpha2
kind: Certificate
metadata:
  name: tls-secret
  namespace: default
spec:
  secretName: tls-secret
  dnsNames:
  - aks-xxxx.xxxxx.xxxx.aksapp.io
  acme:
    config:
    - http01:
        ingress:
          name: xxxxxx
      domains:
      - aks-xxxx.xxxxx.xxxx.aksapp.io
  issuerRef:
    name: letsencrypt-staging
    kind: ClusterIssuer
</code></pre>
<p>When i get cluster issuers</p>
<pre><code>  $ kubectl get clusterissuers
    No resources found
</code></pre>
<p>any idea whats wrong?</p>

Hunzla Ali
<p>You have not created the <strong>clusterissuers</strong> so it wont be there.</p>
<p>As you have created the <strong>certificate</strong> you can try the</p>
<pre><code>kubectl get certificate
</code></pre>
<p>Your error is clearly saying the issue you have to create the <strong>clusterissuers</strong></p>
<blockquote>
<p>Referenced &quot;ClusterIssuer&quot; not found: clusterissuer.cert-manager.io
&quot;letsencrypt&quot; not found</p>
</blockquote>
<p>Cert-manager site : <a href="https://cert-manager.io/docs/" rel="nofollow noreferrer">https://cert-manager.io/docs/</a></p>
<p>Installation : <a href="https://cert-manager.io/docs/installation/" rel="nofollow noreferrer">https://cert-manager.io/docs/installation/</a></p>
<p>in single line just apply :</p>
<pre><code>kubectl apply -f https://github.com/jetstack/cert-manager/releases/download/v1.5.3/cert-manager.yaml
</code></pre>
<p>how to configure &amp; setup the <strong>clusterissuer</strong> : <a href="https://cert-manager.io/docs/configuration/acme/" rel="nofollow noreferrer">https://cert-manager.io/docs/configuration/acme/</a></p>
<p>Example of <code>cluster issuer</code> &amp; <code>ingress</code></p>
<pre><code>apiVersion: cert-manager.io/v1alpha2
kind: ClusterIssuer
metadata:
  name: cluster-issuer-name
  namespace: development
spec:
  acme:
    server: https://acme-v02.api.letsencrypt.org/directory
    email: harsh@example.com
    privateKeySecretRef:
      name: secret-name
    solvers:
    - http01:
        ingress:
          class: nginx-class-name
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  annotations:
    kubernetes.io/ingress.class: nginx-class-name
    cert-manager.io/cluster-issuer: cluster-issuer-name
    nginx.ingress.kubernetes.io/rewrite-target: /
  name: example-ingress
spec:
  rules:
  - host: sub.example.com
    http:
      paths:
      - path: /api
        backend:
          serviceName: service-name
          servicePort: 80
  tls:
  - hosts:
    - sub.example.com
    secretName: secret-name
</code></pre>
