Argo CD

Also known as: ArgoCD

On this page 7

Argo CD is an open-source, declarative GitOps continuous delivery tool for Kubernetes that continuously compares the live state of applications in a cluster with the desired state stored in a Git repository and reconciles any difference. In DevOps practice, it replaces imperative deployment scripts with a pull-based model: the cluster fetches its configuration from Git instead of a pipeline pushing changes into it.

Argo CD is a graduated project of the Cloud Native Computing Foundation, often written as ArgoCD, and part of the wider Argo family alongside Argo Workflows, Argo Rollouts and Argo Events. Its core promise is that Git becomes the single source of truth, so every change is reviewed, versioned and reversible.

How Argo CD reconciles Git and the cluster

Argo CD works through a reconciliation loop. It periodically reads manifests from Git, renders them with the configured tool, compares the result with the live objects in the Kubernetes API, and reports each Application as Synced or OutOfSync. The default polling interval is about three minutes, and Git webhooks can trigger an immediate refresh.

The system is built from several cooperating services, each with a distinct responsibility, as the following table shows.

ComponentResponsibilityTypical scaling concern
API serverServes the web UI, CLI and gRPC/REST API; enforces RBACNumber of concurrent users
Repository serverClones Git repositories and renders manifestsSize and number of repositories
Application controllerCompares desired and live state and performs syncsNumber of managed resources
ApplicationSet controllerGenerates many Applications from templatesNumber of generated Applications
RedisCaches rendered manifests and cluster stateMemory consumption
DexOptional single sign-on through OIDC, SAML or LDAPIdentity provider availability
Main components of Argo CD

The central object is the Application custom resource, which links a source (repository, revision and path) to a destination (cluster and namespace). Applications are grouped into AppProjects, which restrict the allowed repositories, target clusters and resource kinds, and therefore act as a multi-tenancy boundary.

Sync policies, health and drift detection

A sync is the operation that applies the desired manifests to the cluster. It can be manual, after an operator reviews the diff, or automated. With automated sync, Argo CD applies new commits on its own; the optional self-heal flag also reverts manual changes made directly in the cluster, and prune deletes resources that were removed from Git.

The table below summarizes the main sync options and when they are appropriate.

SettingEffectWhen to use it
Manual syncChanges wait for an operator to approve themProduction with strict change control
Automated syncNew commits are applied without interventionDevelopment and staging environments
Self-healManual cluster edits are reverted to the Git stateEnvironments where drift must not persist
PruneObjects deleted from Git are deleted from the clusterWhen Git must fully describe the namespace
Sync waves and hooksResources are applied in a defined orderDatabase migrations before application rollout
Common sync settings and their effect

Separately from sync status, Argo CD evaluates health status: Healthy, Progressing, Degraded, Suspended or Missing. Built-in checks understand Deployments, StatefulSets and Ingress objects, and custom health checks in Lua can be written for operators and custom resources. An application can therefore be Synced yet Degraded when the manifests are applied but Pods fail to start.

Supported configuration formats and scaling patterns

Argo CD is tool-agnostic about manifest generation. It renders plain YAML directories, Kustomize overlays, Helm charts and Jsonnet natively, and other generators through Config Management Plugins. Helm charts are rendered with helm template, so Argo CD owns the resulting objects and Helm release history is not used.

For many environments or clusters, teams use the app-of-apps pattern, in which one parent Application points to a directory of child Application manifests, or the ApplicationSet controller, whose generators create Applications from cluster lists, Git directories or pull requests. A single Argo CD instance can manage hundreds of clusters, although large estates often shard the application controller or run one instance per region to limit the blast radius.

Argo CD compared with push-based pipelines and other GitOps tools

The decisive difference between Argo CD and a classic CI/CD pipeline is the direction of deployment. In a push model, a system such as Jenkins, GitHub Actions or GitLab CI/CD holds cluster credentials and runs kubectl apply. In the GitOps pull model, the agent inside or next to the cluster pulls changes, so CI no longer needs cluster credentials.

ApproachDeployment directionDrift detectionTypical strengths
Argo CDPull from GitContinuous, visible in UIRich web UI, multi-cluster view, SSO and RBAC
FluxPull from GitContinuousLightweight, composable controllers, CLI-first
Push pipelineCI pushes to clusterNone by defaultSimple to start, familiar to CI users
Manual kubectlOperator pushesNoneQuick experiments only
Deployment approaches for Kubernetes

Argo CD does not replace continuous integration. A common split is that CI builds and tests images, then updates an image tag in a configuration repository, and Argo CD handles delivery. Progressive strategies such as canary deployment and blue-green deployment are provided by the companion project Argo Rollouts rather than by Argo CD itself.

Security considerations and common mistakes

Because Argo CD can create any resource it is allowed to manage, it is a highly privileged component. Its service accounts, repository credentials and admin account deserve the same protection as cluster administrator credentials. Sensible defaults include disabling the local admin user after enabling SSO, scoping AppProjects tightly and restricting cluster-scoped resources.

The following table lists frequent problems and how experienced teams address them.

SymptomLikely causeRemedy
Application permanently OutOfSyncFields mutated by controllers or webhooksConfigure ignoreDifferences for those fields
Secrets committed in plain textNo secret management strategyUse Sealed Secrets, SOPS or an external secret operator
Slow refreshes on large repositoriesRepository server overloadedAdd replicas, use webhooks and smaller repositories
Accidental mass deletionPrune enabled with a wrong pathUse deletion protection and review diffs before merge
Frequent Argo CD problems and fixes

Another frequent mistake is mixing GitOps with manual changes. With self-heal enabled, emergency edits made through kubectl disappear within minutes, so incident runbooks must describe how to change Git or temporarily disable automated sync.

Stripped to the essentials

Argo CD is like a building inspector who carries the official blueprint. The blueprint lives in Git, and the building is the Kubernetes cluster. The inspector keeps walking through the building and fixes anything that does not match the blueprint.

To change the building, people do not move walls by hand. They update the blueprint, a colleague reviews it, and Argo CD carries out the change. The result is that every change is recorded and can be undone by returning to an earlier version of the blueprint.

Where it is applied

A software company runs twelve Kubernetes clusters across development, staging and production in three regions. Previously, Jenkins jobs deployed with kubectl, and engineers often fixed problems directly in clusters, so environments drifted apart and nobody knew which version was running where.

The platform team installs one Argo CD instance per region and defines an ApplicationSet that creates an Application for every service in every cluster. CI now only builds images and opens a pull request that updates the image tag. Development uses automated sync with self-heal, while production uses manual sync after review. Within a quarter, the team can answer which version runs in each cluster from a single dashboard, and a rollback becomes a Git revert completed in minutes.