You are introducing Argo CD to a multi-cluster fleet, the dev cluster install was a one-liner, and you need to set up the production install in a way that survives operators rotating in and out, password rotations, and the inevitable certificate expiry that will catch your attention only when it’s already too late. This article is what we install on real production clusters — Helm-managed Argo CD with the HA mode enabled, SSO via Dex (or external OIDC), RBAC mapped to identity-provider groups, and cert-manager driving the public certs.
How to verify
After install, every Argo CD component should report Running:
kubectl -n argocd get pods
kubectl -n argocd get deploy,sts
The admin account should not be the daily-driver. Confirm SSO is configured:
kubectl -n argocd get cm argocd-cm -o yaml | grep -A30 "dex.config\|oidc.config"
Login over the public hostname should work with SSO, not via port-forward:
argocd login argocd.example.com --sso
argocd account get-user-info
TLS should chain to a real issuer:
echo | openssl s_client -servername argocd.example.com -connect argocd.example.com:443 2>/dev/null \
| openssl x509 -noout -subject -issuer -dates
What’s happening
Argo CD is a Kubernetes-native GitOps controller. It watches a Git repository for desired-state manifests (plain YAML, Helm charts, Kustomize overlays) and reconciles the cluster to match. The control plane is six components: argocd-server (the API + UI), argocd-repo-server (clones repos and renders manifests), argocd-application-controller (the reconciliation loop), argocd-applicationset-controller (templated multi-cluster apps), argocd-notifications-controller (event routing), and argocd-dex-server (optional, the embedded OIDC broker).
The default install gives you a single replica of each component and a self-generated admin password. That is fine for a demo. Production needs the HA mode of the chart, which scales argocd-repo-server to two replicas with anti-affinity, runs argocd-application-controller as a StatefulSet (so each replica owns a shard of Applications), and ships a Redis HA setup. It also needs SSO so individual operators are auditable, RBAC so they don’t all have admin, and TLS via a real issuer.
The procedure
-
Add the chart and create the namespace.
helm repo add argo https://argoproj.github.io/argo-helm helm repo update kubectl create namespace argocd -
Author a values file in Git and apply it. Below is a trimmed but complete example:
# values.yaml global: domain: argocd.example.com configs: params: server.insecure: false cm: url: https://argocd.example.com admin.enabled: false dex.config: | connectors: - type: oidc id: keycloak name: Keycloak config: issuer: https://auth.example.com/realms/internal clientID: argocd clientSecret: $oidc.keycloak.clientSecret requestedScopes: ["openid", "profile", "email", "groups"] rbac: policy.default: '' policy.csv: | g, argocd-admins, role:admin g, argocd-devs, role:readonly secret: extra: oidc.keycloak.clientSecret: "REPLACED_BY_SEALED_SECRET" server: ingress: enabled: true ingressClassName: nginx annotations: cert-manager.io/cluster-issuer: letsencrypt-prod nginx.ingress.kubernetes.io/backend-protocol: HTTPS hostname: argocd.example.com tls: true redis-ha: enabled: true controller: replicas: 2 repoServer: replicas: 2 applicationSet: replicas: 2Then install:
helm install argocd argo/argo-cd -n argocd -f values.yaml --version 7.7.0 -
Disable the admin account once SSO is verified. The values above already set
admin.enabled: false. If you needed a break-glass admin, keep it but rotate the password (stored in theargocd-secretSecret asadmin.passwordbcrypt):ARGO_ADMIN_PWD=$(openssl rand -hex 24) ARGO_ADMIN_HASH=$(htpasswd -nbBC 10 "" "$ARGO_ADMIN_PWD" | tr -d ':\n' | sed 's/$2y/$2a/') kubectl -n argocd patch secret argocd-secret \ -p "{\"stringData\": {\"admin.password\": \"$ARGO_ADMIN_HASH\", \"admin.passwordMtime\": \"$(date +%FT%T%Z)\"}}"Store
$ARGO_ADMIN_PWDin your password manager — that is the break-glass. -
Define cluster targets via the CLI. The cluster Argo CD runs on is registered as
in-clusterautomatically. Add additional clusters by creating a kubeconfig pointing to them and running:argocd cluster add prod-cluster --kubeconfig ~/.kube/configFor multi-cluster fleets, see argocd-applicationset-generators.
-
Register your first Application from Git. Save below as
app-root.yamland apply it:apiVersion: argoproj.io/v1alpha1 kind: Application metadata: name: root namespace: argocd spec: project: default source: repoURL: https://github.com/example/gitops path: clusters/prod targetRevision: main destination: server: https://kubernetes.default.svc namespace: argocd syncPolicy: automated: prune: true selfHeal: trueThis is the app-of-apps entry point — it points to a folder in Git that contains other Application manifests.
-
Lock the source repo at the Git layer. Branch protection on
main, required reviewers, signed commits if your org allows. Argo CD will faithfully apply whatever lands inmain— your Git review process is your change control.
Operational notes
admin.enabled: falseonly disables web login, not the API. Theadminuser can still be exercised via direct token if the bcrypt hash is known. Treat the secret as crown-jewels.- HA mode requires Redis HA. Without
redis-ha.enabled: trueyou have a single Redis pod that takes the whole UI down on a crash. Don’t run HA Argo CD with a single Redis. - Repo-server clones over the network on every reconcile. Large repos or slow Git remotes throttle reconciliation. Use a Git mirror with shallow clones, or run argocd-repo-server with a persistent volume to cache.
- OIDC group sync depends on the issuer. Keycloak ships
groupsin the JWT only if you map the protocol mapper; Okta needs a group claim filter; Azure AD limits group claims to 200. Read your issuer’s docs — Argo CD only sees what the JWT contains. - Cert-manager rate limits matter. Let’s Encrypt has a 50-cert-per-week-per-domain limit. If you tear down and recreate the cluster repeatedly during a migration, switch to a staging issuer first to avoid lockout.
Stack Harbor stands up production Argo CD installs as part of every Kubernetes engagement we run — the Helm values in Git, the SSO + RBAC mapping, the break-glass admin discipline, and the app-of-apps bootstrap that brings the rest of the cluster up. See how we deliver that within our managed Kubernetes operations practice.