TExcelTAD
Home › GitOps: Argo CD & Flux › Argo CD Architecture & Install

Argo CD Architecture & Install

Argo CD is the most widely used GitOps agent: a CNCF graduated project with a web UI that shows every application as a live tree of Kubernetes objects. This course targets the 3.x line (3.0 shipped in 2025; check the releases page for the current minor). It runs as a handful of Deployments in its own namespace, argocd.

The components

text
                  ┌────────────────────── argocd namespace ───────────────────────┐
 Git / Helm /     │                                                               │
 OCI repos  <─────┤ argocd-repo-server        clones, renders (helm/kustomize)    │
                  │        ^                  caches manifests per commit         │
                  │        │ render                                               │
 users / CLI ────>│ argocd-server ──────> argocd-application-controller ──────────┼──> Kubernetes API
 (UI, API, SSO)   │  (API + UI)            compares desired vs live, syncs,       │    (this and other
                  │                        computes health                         │     clusters)
                  │ argocd-applicationset-controller   generates Applications     │
                  │ argocd-notifications-controller    Slack, webhooks, email     │
                  │ argocd-redis (cache)    argocd-dex-server (optional SSO)      │
                  └───────────────────────────────────────────────────────────────┘
Component Job
application-controller the reconcile loop: watches the clusters, compares with the rendered state, runs syncs, computes sync and health status. A StatefulSet that can be sharded across clusters
repo-server fetches repositories and renders manifests (plain YAML, Kustomize, Helm, Config Management Plugins). It never talks to the cluster
server the API and the web UI; authentication (local users, SSO through Dex or OIDC) and RBAC
applicationset-controller turns ApplicationSets into Applications (ApplicationSets)
notifications-controller sends events (sync failed, app degraded) to Slack, Teams, webhooks…
redis a cache for rendered manifests and cluster state; losing it costs only time

Everything Argo CD knows is stored as Kubernetes objects: Application, AppProject and ApplicationSet CRDs, plus ConfigMaps (argocd-cm, argocd-rbac-cm, argocd-cmd-params-cm) and Secrets for repository and cluster credentials. You can therefore manage Argo CD itself with GitOps.

Install (sample session)

The upstream manifest is the quickest way to try it on a local kind or k3d cluster. The docs use server-side apply because the CRDs are too large for the client-side last-applied annotation:

bash
kubectl create namespace argocd
kubectl apply -n argocd --server-side --force-conflicts \
  -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
kubectl -n argocd get deploy,statefulset

Sample output:

text
NAME                                               READY   UP-TO-DATE   AVAILABLE   AGE
deployment.apps/argocd-applicationset-controller   1/1     1            1           62s
deployment.apps/argocd-dex-server                  1/1     1            1           62s
deployment.apps/argocd-notifications-controller    1/1     1            1           62s
deployment.apps/argocd-redis                       1/1     1            1           62s
deployment.apps/argocd-repo-server                 1/1     1            1           62s
deployment.apps/argocd-server                      1/1     1            1           62s

NAME                                             READY   AGE
statefulset.apps/argocd-application-controller   1/1     62s

For production, install from the official Helm chart (argo/argo-cd) or the ha/install.yaml manifest (several replicas of each component, Redis HA), pin the version instead of stable, and manage the values in Git.

Logging in

bash
kubectl port-forward svc/argocd-server -n argocd 8080:443 &
argocd admin initial-password -n argocd      # prints the generated admin password
argocd login localhost:8080 --username admin --insecure
argocd account update-password
argocd version --short

The initial password lives in the argocd-initial-admin-secret Secret; delete it after changing the password. Real installations disable the local admin user and log in through SSO (argocd login argocd.example.com --sso).

Registering repositories and clusters

bash
# a private Git repo, read-only deploy key (stored as a Secret labelled argocd.argoproj.io/secret-type=repository)
argocd repo add git@github.com:acme/linkly-deploy.git --ssh-private-key-path ~/.ssh/linkly-deploy-ro

# an OCI registry holding Helm charts
argocd repo add ghcr.io/acme/charts --type helm --enable-oci --name acme-charts

# another cluster (uses your current kubeconfig context to create a ServiceAccount there)
argocd cluster add staging-cluster
argocd cluster list

Sample output of the last command:

text
SERVER                          NAME             VERSION  STATUS      MESSAGE  PROJECT
https://10.0.12.4:6443          staging-cluster  1.37     Successful
https://kubernetes.default.svc  in-cluster       1.37     Successful

in-cluster is the cluster Argo CD runs on. One Argo CD can manage many clusters (hub and spoke), or each cluster can run its own Argo CD (instance per cluster); the Field Notes weigh the two.

Argo CD 3.0 changes worth knowing

If you read older tutorials, these 3.0 defaults explain differences you will see:

  • Annotation-based resource tracking is the default (argocd.argoproj.io/tracking-id), instead of the app.kubernetes.io/instance label.
  • Fine-grained RBAC: update/delete on an Application no longer imply the same rights on its resources; grant update/* or delete/* explicitly.
  • Logs RBAC is always enforced: users need an explicit logs, get permission.
  • Default resource exclusions hide high-churn objects such as Endpoints, EndpointSlice and Lease from the controller.
  • Repository settings in argocd-cm were removed; repositories are Secrets.

Test yourself

Which Argo CD component runs helm template and kustomize build?

  1. argocd-server
  2. argocd-repo-server
  3. argocd-application-controller
  4. argocd-redis

Where does Argo CD keep its Applications and settings?

  1. In a PostgreSQL database
  2. As Kubernetes objects: CRDs, ConfigMaps and Secrets in its namespace
  3. In Redis only
  4. In Git only

Since Argo CD 3.0, how does Argo CD mark the objects it manages by default?

  1. With the app.kubernetes.io/instance label
  2. With the argocd.argoproj.io/tracking-id annotation
  3. With owner references
  4. It doesn't mark them