Skip to content
Mementropy
Lab NotesHomelab notebookField note

Argo CD redirect loop behind Traefik

Setting server.insecure ended the loop. hello and kaneo synced.

By Ryan Hammang

Last step today: Argo CD on the management cluster, so changes come from Git instead of my terminal.

By default argocd-server handles its own TLS and answers plain HTTP with a 307 redirect to HTTPS. Traefik forwards HTTP on port 80, so that becomes an endless redirect loop.

Setting server.insecure: true in argocd-cmd-params-cm stops it. /api/version returned 200 on the first try.

I also turned off Dex and notifications, since I’m not using single sign-on or alerts from Argo CD. That left five pods using about 260 MiB.

Argo CD needs to clone from my Gitea using the same gitea.example.home.arpa URL I use on my workstation. Like Kaneo, its pods can’t resolve that name, so I added hostAliases here too.

Then I registered the repository as a Secret and applied two Applications, hello and kaneo. Both reached Synced and Healthy within seconds.

Next I want Argo CD to pick up new Applications from Git on its own, rather than me applying each one.

Recipes written later from this work: