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
┌────────────────────── 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:
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,statefulsetSample output:
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 62sFor 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
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 --shortThe 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
# 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 listSample output of the last command:
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 Successfulin-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 theapp.kubernetes.io/instancelabel. - Fine-grained RBAC:
update/deleteon an Application no longer imply the same rights on its resources; grantupdate/*ordelete/*explicitly. - Logs RBAC is always enforced: users need an explicit
logs, getpermission. - Default resource exclusions hide high-churn objects such as
Endpoints,EndpointSliceandLeasefrom the controller. - Repository settings in
argocd-cmwere removed; repositories are Secrets.
Test yourself
Which Argo CD component runs helm template and kustomize build?
- argocd-server
- argocd-repo-server
- argocd-application-controller
- argocd-redis
Where does Argo CD keep its Applications and settings?
- In a PostgreSQL database
- As Kubernetes objects: CRDs, ConfigMaps and Secrets in its namespace
- In Redis only
- In Git only
Since Argo CD 3.0, how does Argo CD mark the objects it manages by default?
- With the
app.kubernetes.io/instancelabel - With the
argocd.argoproj.io/tracking-idannotation - With owner references
- It doesn't mark them