Skip to content
Mementropy
RecipesHomelab recipesReference

Installing Argo CD on K3s behind Traefik

Argo CD without a redirect loop, without Dex, and with a Git repository Secret.

By Ryan Hammang

Status: Git access via hostAliases superseded by the coredns-custom recipe.

A small Argo CD on K3s, served through Traefik over HTTP on a private network.

  1. Values that matter:
configs:
params:
server.insecure: true
dex:
enabled: false
notifications:
enabled: false
  1. Install:
Terminal window
helm upgrade --install argocd argo/argo-cd -n argocd --create-namespace -f values.yaml
  1. Add the Git repo as a Secret:
apiVersion: v1
kind: Secret
metadata:
name: repo-platform
namespace: argocd
labels:
argocd.argoproj.io/secret-type: repository
stringData:
type: git
url: http://gitea.example.home.arpa/<owner>/<repo>.git
  1. Make the Git hostname resolve inside the cluster (see the coredns-custom recipe).
  • /api/version returns 200.
  • Applications reach Synced and Healthy.
  • Without server.insecure, argocd-server redirects HTTP to HTTPS and Traefik loops.
  • Only use HTTP like this on a private, encrypted network such as a tailnet.