<p>I have followed the quickstart of ArgoCD documentation <a href="https://argo-cd.readthedocs.io/en/stable/#quick-start" rel="nofollow noreferrer">https://argo-cd.readthedocs.io/en/stable/#quick-start</a></p>
<p>The only difference is that I deployed in <code>argo-cd</code> namespace instead of <code>argocd</code>.</p>
<p>Now, I'm having issues to access this application through my Nginx ingress. It's throwing <code>ERR_TOO_MANY_REDIRECTS</code> on the browser and in the logs of Nginx:</p>
<pre><code>172.71.6.219 - - [05/Jul/2023:23:01:54 +0000] &quot;GET / HTTP/1.1&quot; 308 164 &quot;-&quot; &quot;Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36&quot; 904 0.000 [argo-cd-argocd-server-http] [] - - - - ba62103809faf5da2f9e2661a2c1f50b
172.71.6.219 - - [05/Jul/2023:23:01:54 +0000] &quot;GET / HTTP/1.1&quot; 308 164 &quot;-&quot; &quot;Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36&quot; 904 0.000 [argo-cd-argocd-server-http] [] - - - - 0d05a1f48fdceb5d4c557884c3850074
172.71.6.219 - - [05/Jul/2023:23:01:55 +0000] &quot;GET / HTTP/1.1&quot; 308 164 &quot;-&quot; &quot;Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36&quot; 904 0.000 [argo-cd-argocd-server-http] [] - - - - d724f5d890ce91e713c768db2126d44f
.......... more and more
</code></pre>
<p>On the ArgoCD server, I've setted the <code>server.insecure:&quot;true&quot;</code> on <code>argocd-cmd-params-cm</code>.</p>
<p>This is my Ingress:</p>
<pre class="lang-yaml prettyprint-override"><code>apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: argocd-ingress
  namespace: argo-cd
  annotations:
    cert-manager.io/issuer: prod-issuer
    cert-manager.io/issuer-kind: OriginIssuer
    cert-manager.io/issuer-group: cert-manager.k8s.cloudflare.com
    nginx.ingress.kubernetes.io/force-ssl-redirect: &quot;false&quot;
    nginx.ingress.kubernetes.io/backend-protocol: &quot;HTTP&quot;
spec:
  tls:
  - hosts:
    - '*.my_site.dev'
    secretName: argocd-secret
  ingressClassName: nginx
  rules:
  - host: argocd.my_site.dev
    http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: argocd-server
            port:
              name: http
</code></pre>
<p>I've tried to set  <code>server.insecure:&quot;false&quot;</code> and my Ingress like this:</p>
<pre class="lang-yaml prettyprint-override"><code>apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: argocd-ingress
  namespace: argo-cd
  annotations:
    cert-manager.io/issuer: prod-issuer
    cert-manager.io/issuer-kind: OriginIssuer
    cert-manager.io/issuer-group: cert-manager.k8s.cloudflare.com
    nginx.ingress.kubernetes.io/force-ssl-redirect: &quot;true&quot;
    nginx.ingress.kubernetes.io/backend-protocol: &quot;HTTPS&quot;
spec:
  tls:
  - hosts:
    - '*.my_site.dev'
    secretName: argocd-secret
  ingressClassName: nginx
  rules:
  - host: argocd.my_site.dev
    http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: argocd-server
            port:
              name: https
</code></pre>
<p>PS: Of course I've deleted the argo-cd-server between the changes on the ConfigMap.</p>
<p>Nothing is working.</p>
<p>Do you guys have any idea how to solve this?</p>

Vitor Nilson
<p><code>ERR_TOO_MANY_REDIRECTS</code> is an error message, a browser returns when it fails to load webpage content due to a redirect loop.  A redirect loop occurs when a requested page redirects to another page and the second page redirects back to the origin. Follow this <a href="https://kubernetes.github.io/ingress-nginx/examples/rewrite/" rel="nofollow noreferrer">Link</a> for redirecting the Path and add the below annotation in yaml and it will help in overcoming this error.</p>
<pre><code>nginx.ingress.kubernetes.io/rewrite-target: /
</code></pre>
