<p>I have installed <a href="https://docs.cert-manager.io/en/release-0.11/reference/clusterissuers.html" rel="nofollow noreferrer">https://docs.cert-manager.io/en/release-0.11/reference/clusterissuers.html</a> on my K8S cluster and use it with Nginx ingress controller. </p>

<p>It is working properly with my hello demo service:</p>

<pre><code>apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
  name: hello-kubernetes-ingress
  annotations:
    kubernetes.io/ingress.class: nginx
    cert-manager.io/cluster-issuer: letsencrypt-prod
spec:
  rules:
    - host: hello.co.databaker.io
      http:
        paths:
          - backend:
              serviceName: hello-kubernetes-first
              servicePort: 80
  tls:
    - hosts:
        - hello.co.databaker.io
      secretName: hello-kubernetes-tls
</code></pre>

<p>But the harbor service does not work: </p>

<pre><code>apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
  name: harbor-ingress
  annotations:
    kubernetes.io/ingress.class: nginx
    cert-manager.io/cluster-issuer: letsencrypt-prod
spec:
  rules:
    - host: shiphub.co.databaker.io
      http:
        paths:
          - backend:
              serviceName: shiphub-harbor-portal
              servicePort: 80
            path: /
          - backend:
              serviceName: shiphub-harbor-core
              servicePort: 80
            path: /api/
          - backend:
              serviceName: shiphub-harbor-core
              servicePort: 80
            path: /service/
          - backend:
              serviceName: shiphub-harbor-core
              servicePort: 80
            path: /v2/
          - backend:
              serviceName: shiphub-harbor-core
              servicePort: 80
            path: /chartrepo/
          - backend:
              serviceName: shiphub-harbor-core
              servicePort: 80
            path: /c/
    - host: notary.co.databaker.io
      http:
        paths:
          - backend:
              serviceName: shiphub-harbor-notary-server
              servicePort: 4443
            path: /
  tls:
    - hosts:
        - shiphub.co.databaker.io
      secretName: secretName
    - hosts:
        - notary.co.databaker.io
      secretName: secretName
</code></pre>

<p>And it shows wrong issuer: </p>

<p><a href="https://i.stack.imgur.com/49PqC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/49PqC.png" alt="enter image description here"></a></p>

<p>How to set the right issuer? </p>

softshipper
<p>Please keep in mind, that <a href="https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" rel="nofollow noreferrer">resource names</a> in Kubernetes needs to be in lower-case:</p>

<blockquote>
  <p>secretName</p>
</blockquote>

<p>that's probably causing your issue.</p>
