<p>I have argo cd running in my EKS cluster , and now I want to have DNS name on top so I can access it easily using a domain.</p>
<p>I am able to configure but when I access the url in browser it always goes to https(non secure ) mode.
I read couple of same issues here but there are not directly relevant .</p>
<p>Below is an ingress that I have tried</p>
<pre><code>apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: argocd
  namespace: argocd
  annotations:
    cert-manager.io/cluster-issuer: letsencrypt-prod
    kubernetes.io/tls-acme: &quot;true&quot;
    nginx.ingress.kubernetes.io/backend-protocol: &quot;HTTPS&quot;
    nignx.ingress.kubernetes.io/force-ssl-redirect: &quot;true&quot;
    nginx.ingress.kubernetes.io/ssl-passthrough: &quot;true&quot;
spec:
  ingressClassName: nginx
  rules:
  - host: argocd.example.com
    http:
      paths:
      - path: /
        pathType: ImplementationSpecific
        backend:
          service:
            name: argocd-server
            port:
              number: 443
  tls:
  - hosts:
    - argocd.example.com
    secretName: argocd-secret
</code></pre>
<p>if I am trying to remove the annotation <code>nginx.ingress.kubernetes.io/backend-protocol: &quot;HTTPS&quot;</code> then I get a different error which is related redirection in loop.</p>
<p>I am not sure what else I need to add to the ingress here so it can route to <code>https</code> rather of <code>http</code></p>

waseem mir
<p><code>nginx.ingress.kubernetes.io/ssl-passthrough</code> works on TCP level and not on HTTP level. Therefore, <code>nignx.ingress.kubernetes.io/force-ssl-redirect</code> should be invalidated by the <code>ssl-passthrough</code> annotation.</p>
<p>Check for more info: <a href="https://github.com/kubernetes/ingress-nginx/blob/main/docs/user-guide/nginx-configuration/annotations.md#ssl-passthrough" rel="nofollow noreferrer">https://github.com/kubernetes/ingress-nginx/blob/main/docs/user-guide/nginx-configuration/annotations.md#ssl-passthrough</a></p>
<p>Try removing the <code>ssl-passthrough</code> annotation and it should work as expected.</p>
