<p>I am trying to use 'Kubernetes Ingress with Traefik, CertManager, LetsEncrypt and HAProxy' for certificates management.</p>
<p>What I want to do is use certificates in my application which deployed on kubernetes.</p>
<p>My application contains following services:</p>
<blockquote>
<p>my-app1   NodePort    10.43.204.206     16686:31149/TCP</p>
</blockquote>
<blockquote>
<p>my-app2 NodePort   10.43.204.208     2746:30972/TCP</p>
</blockquote>
<p>So for my-app1 without certificates I was accessing it as <code>http://{IP}:31149/app1</code>. And with certificates I am now accessing it as <code>https://my-dns.com/app1</code>. For this I am using <a href="https://allanjohn909.medium.com/kubernetes-ingress-traefik-cert-manager-letsencrypt-3cb5ea4ee071" rel="nofollow noreferrer">this</a> link. I created following ingress resource:</p>
<pre><code>apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: prod-ingress
  namespace: my-ns
  annotations:
    cert-manager.io/cluster-issuer: letsencrypt-prod
    kubernetes.io/ingress.class: traefik
    traefik.ingress.kubernetes.io/router.tls: &quot;true&quot;
spec:
  tls:
  - hosts:
    - &quot;my-dns.com&quot;
    secretName: prod-cert
  rules:
  - host: &quot;my-dns.com&quot;
    http:
      paths:
      - path: /app1
        pathType: Prefix
        backend:
          service:
            name: my-app1
            port:
              number: 16686
</code></pre>
<p>But for my-app2 without certificates I was accessing it as <code>https://{IP}:30972/app2</code>. So as I am already using https for my-app2 but I want to also use certificates for this service.</p>
<p>Any idea how to do this?</p>

Rupesh Shinde
<p>So the issue was, I was deploying my application with self signed certificates. So because of this I am getting issue while accessing my dashboard.</p>
<p>So now I just disabled self signed certificates in my application. And now I am able
to access dashboard with domain name <code>https://my-dns.com</code>.</p>
