What is Argo CD and when should you use it?
Learn how Argo CD works under the hood, its core concepts (Application, AppProject, ApplicationSet, sync waves), how to install it, and, above all, when it is — and when it isn't — the right choice.
Kubernetes$ argocd admin initial-password -n argocd▍You already have a Kubernetes cluster, your manifests live in some repository, and deployments still depend on a kubectl apply or a helm upgrade fired at the end of the pipeline. When the question becomes “how do I make the cluster follow Git on its own?”, Argo CD is the tool that comes up most often. Let’s look at what it is, how it works, and — just as important — when it is not worth it.
If the underlying concept is still new to you, start with What is GitOps?.
What Argo CD is
Argo CD is a declarative, GitOps-based continuous delivery tool for Kubernetes. It is part of the Argo project (along with Argo Workflows, Argo Rollouts, and Argo Events), which is a graduated CNCF project.
The core idea: you describe the desired state of your applications in Git — plain YAML manifests, Kustomize, Helm charts, or Jsonnet — and Argo CD, running inside the cluster, compares that state with what is actually running and works to make the two match. This is the pull model: your CI pipeline doesn’t need cluster credentials.
How it works
Argo CD is a set of components, usually installed in the argocd namespace:
| Component | Role |
|---|---|
argocd-repo-server |
Clones repositories and generates the final manifests (renders Helm, Kustomize, Jsonnet) |
argocd-application-controller |
Compares desired state with live state and runs syncs |
argocd-server |
API used by the web UI and the argocd CLI; handles authentication and RBAC |
argocd-applicationset-controller |
Generates Applications automatically from templates |
argocd-redis |
Cache for manifests and state |
argocd-dex-server |
Optional; integrates SSO (OIDC, SAML, GitHub, LDAP…) |
Sync, health, diff, self-heal, and prune
- Diff: the controller compares what the repo server rendered with the live objects in the cluster. If they differ, the application becomes
OutOfSync. - Sync: applying the Git state to the cluster. It can be manual (button or CLI) or automated.
- Health: Argo CD also checks whether a resource is healthy. A
Deploymentwith all replicas available isHealthy; one that fails to come up isProgressingorDegraded. - Self-heal: with automated sync, manual changes in the cluster are reverted to what’s in Git.
- Prune: resources removed from Git are also removed from the cluster. Without prune, they are left orphaned.
Key concepts
Application
The main CRD: it links a source (repository, revision, and path) to a destination (cluster and namespace), with a sync policy. The Argo CD practical guide shows a complete Application with self-heal and prune.
AppProject
Groups applications and defines boundaries: which repositories they can read from, which clusters and namespaces they can deploy to, and which resource kinds they can create. It is the foundation of multi-tenancy — and the default project allows everything, so avoid using it in production.
ApplicationSet
Generates many Applications from a template and generators: a list of clusters, repository directories (one application per folder), open pull requests, and more. It’s what lets you manage dozens of services or clusters without copying YAML around.
Sync waves and hooks
The argocd.argoproj.io/sync-wave annotation sets the order of a sync (lower waves first) — for example, namespaces and CRDs before applications. Hooks (argocd.argoproj.io/hook with values such as PreSync, Sync, PostSync, and SyncFail) run resources, usually Jobs, at specific moments, such as a database migration before the new code rolls out.
Installation and first steps
The most direct way is to apply the official manifest in the argocd namespace; the alternative is the Helm chart maintained by the Argo community:
kubectl create namespace argocd
kubectl apply -n argocd --server-side --force-conflicts \
-f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
# Alternative: Helm chart
helm repo add argo https://argoproj.github.io/argo-helm
helm install argocd argo/argo-cd -n argocd --create-namespace
--server-side avoids the annotation size limit that some of Argo CD’s large CRDs hit with a traditional client-side apply. In production, pin a version instead of stable and check the procedure in the current documentation.
Next, retrieve the initial password, open a tunnel to the UI, and create your first application from the CLI:
argocd admin initial-password -n argocd
kubectl port-forward svc/argocd-server -n argocd 8080:443
argocd login localhost:8080 --username admin --insecure # self-signed certificate
argocd app create guestbook \
--repo https://github.com/argoproj/argocd-example-apps.git \
--path guestbook \
--dest-server https://kubernetes.default.svc \
--dest-namespace default
argocd app diff guestbook # what will change
argocd app sync guestbook # apply it
argocd app get guestbook # sync and health status
The CLI is great for exploring, but creating applications by hand defeats the purpose of GitOps. Day to day, declare your Applications as YAML, in Git.
When to use Argo CD
- Kubernetes-centric delivery: your workloads run on Kubernetes and your manifests can live in Git.
- Many applications or many clusters: with ApplicationSet and a central instance managing several clusters, scale stays manageable.
- Visibility for developers: the UI shows the resource tree, events, logs, and the diff of every change — which cuts down on “did my deploy go out?” tickets.
- Audit trail: every production change is a reviewed commit, and sync history is recorded in Argo CD itself.
When not to use it
- There’s no Kubernetes. Argo CD only deploys to Kubernetes clusters. For VMs, serverless, or PaaS, use other tools.
- A single small application. One service with one environment may be well served by a simple pipeline; Argo CD is one more system to operate, upgrade, and secure.
- The team isn’t ready to keep manifests in Git. If changes keep being made directly in the cluster, self-heal will fight your people. GitOps is, first and foremost, a process change.
- You need native Helm releases. Argo CD renders the chart and applies the resulting manifests; the release doesn’t show up in
helm list. If that matters, Flux, withHelmRelease, is a better fit.
Argo CD or Flux?
Both are CNCF graduated projects and solve the same problem. In short: Argo CD brings a rich web UI and a centralized model — a server that can manage many clusters, with its own RBAC. Flux is a set of controllers with no built-in UI, where everything is a Kubernetes resource. The detailed comparison is in Pure GitOps: separating CI from CD.
Security: the production minimum
- SSO and RBAC: integrate with your identity provider (through Dex or direct OIDC) and define roles in
argocd-rbac-cm. Then disable theadminuser (admin.enabled: "false"inargocd-cm) and delete theargocd-initial-admin-secretsecret. - Restrictive AppProjects: limit
sourceRepos,destinations, and the cluster-scoped resources allowed for each team. - Don’t expose the UI without authentication. Publish it with TLS and, ideally, only on a private network or behind a VPN.
- Read-only Git credentials: Argo CD only needs to read your repositories.
- No plaintext secrets in Git: use Sealed Secrets, SOPS, or the External Secrets Operator.
Checklist
- Workloads on Kubernetes and manifests versioned in Git
- Argo CD version pinned and the installation itself declared as code
- SSO configured and the
adminuser disabled - One AppProject per team, never
defaultin production - Automated sync with self-heal and prune, starting with non-production environments
- Sync waves and hooks for dependencies and migrations
- UI reachable only with authentication and TLS
Argo CD doesn’t replace your process: it makes visible — and mandatory — what should already be in Git.