CI/CD on AWS settles where Argo CD sits: CodePipeline and CodeBuild build and test, and Argo CD — the Amazon EKS managed capability — owns the deploy. That page spends one paragraph on Argo CD itself. This one is the rest: how it works, what it needs from this repository before it can deploy it, and the handful of settings that decide whether it is safe.
Four sources ground it: the Argo project's own landing pages ( argoproj.github.io ), the Argo CD chapter of Jimmy Song's Kubernetes Handbook ( jimmysong.io , Chinese), Antony Kervazo-Canut's ArgoCD for Teenagers (a 24-page illustrated primer), and the Argo CD documentation where the three disagree. Where a source is wrong, the last section says so.
What it is, in one paragraph
Argo CD is a Kubernetes controller that reads manifests from git, renders them, compares the result with what is running, and reports — or removes — the difference. Git is the desired state; the cluster is the actual state; Argo CD is the loop between them. Intuit open-sourced it in 2018, the Argo project entered the CNCF in 2020, and it graduated in December 2022.
The consequence that matters on AWS is not the UI. It is who holds the cluster credential. In a push pipeline, the CI role can
kubectl apply anything to production. In a pull model, the pipeline's only write is a commit, and the only identity with cluster write access is a controller that runs inside the cluster and does nothing that is not in git. | push ( make deploy , CodePipeline EKS action) | pull (Argo CD) |
|---|---|---|
who can write to the cluster | the pipeline role, and anyone who can edit the pipeline | the Argo CD controller only |
what a hand-edit in the cluster does | persists silently until the next deploy | shows as OutOfSync ; reverted if selfHeal is on |
rollback | re-run an old pipeline, if its artifacts still exist | git revert |
audit trail | pipeline logs | git history, plus Argo CD's sync history |
what breaks it | a leaked CI credential | a leaked git write credential — so branch protection becomes a production control |
That last row is the one teams miss: once Argo CD is in place, merge rights on the deploy branch are deploy rights. Protect the branch accordingly.
The seven components, and which ones hold secrets
component | what it does | what it holds |
|---|---|---|
argocd-server | the API (gRPC and REST on one port), the web UI, SSO handling, RBAC enforcement | the session-signing key; it can read every Application |
argocd-repo-server | clones git, runs Helm / Kustomize / Jsonnet / plugins, returns plain manifests | git credentials, and whatever a plugin injects while rendering |
argocd-application-controller | compares rendered manifests with live state; syncs; computes health | credentials for every destination cluster |
argocd-redis | cache for rendered manifests and live-state trees | a copy of every rendered manifest — including any secret a plugin rendered |
argocd-dex-server | OIDC broker to LDAP, SAML, GitHub, etc. | the IdP client secret |
argocd-applicationset-controller | stamps out Applications from templates and generators | SCM tokens, if you use the SCM or pull-request generators |
argocd-notifications-controller | sends sync and health events to Slack, email, webhooks | the notification service tokens |
The application controller is the most privileged process in the estate: it can write to every cluster you register. The repo-server is the most exposed: it executes templating code from your repositories. Most hardening advice reduces to keeping those two facts apart — don't give the repo-server anything it does not need, and don't let a rendering step see a secret.
ApplicationSet and Notifications were separate projects; both have shipped inside Argo CD since v2.3, so a 2021 tutorial that installs them separately is out of date.
The reconcile loop
- A commit lands on the tracked branch.
- Argo CD notices — by polling every 180 seconds by default (
timeout.reconciliationinargocd-cm), or immediately if the git host callshttps://<argocd>/api/webhook.
- The repo-server renders the path at that revision into plain manifests.
- The controller diffs them against the live objects.
- It syncs, automatically or when someone presses the button.
- It reports two independent statuses: sync (does live match git?) and health (is the thing working — is the Deployment rolled out, is the Ingress addressed?).
Keep the two statuses apart in alerts.
Synced + Degraded means git is faithfully deploying something broken; OutOfSync + Healthy means someone changed the cluster by hand and it still works.Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article