Argo CD
A Kubernetes-native GitOps controller with a rich UI that syncs Applications from Git and shows health and drift at a glance.
Intermediate · about 6 hours · difficulty 3/5
Learn first: GitOps Principles
Argo CD is the most widely used GitOps tool. It runs in the cluster, watches Git repositories and keeps Kubernetes resources in sync with them.
Core concepts
- An Application points at a repo, a path (plain YAML, Kustomize or a Helm chart) and a destination cluster and namespace.
- Sync status says whether the live state matches Git; health status says whether resources are actually working (Deployments rolled out, pods ready).
- Sync policies: manual, or automated with prune (delete resources removed from Git) and self-heal (undo manual changes).
- Projects restrict which repos, clusters and namespaces a team's Applications may use.
Managing many apps
- App of apps: one Application that creates others.
- ApplicationSet generates Applications from templates across clusters, directories or pull requests (preview environments).
- Sync waves and hooks order resources, for example run a migration Job before the Deployment.
Operating it
- Log in with SSO and map groups to RBAC roles; avoid sharing the admin password.
- Register external clusters for a hub-and-spoke setup.
- Pair it with Argo Rollouts for canary releases and Argo CD Image Updater or Renovate for tag bumps.
- Use the
argocdCLI or the UI diff view to see exactly what a sync will change.
Good enough to move on: you can install Argo CD, deploy an app with automated sync, prune and self-heal, generate per-environment Applications with an ApplicationSet, and restrict a team with a Project.
Key concepts
- Applications and sources
- Sync and health status
- Automated sync, prune and self-heal
- Projects and RBAC
- App of apps and ApplicationSets
- Sync waves and hooks
- Multi-cluster management
Other options for this step
- Flux: A lightweight, composable GitOps toolkit made of Kubernetes controllers for sources, Kustomize, Helm and image automation.
Mini project
Install Argo CD on a local cluster, deploy an app from your config repo with self-heal on, then prove it works by deleting a Deployment by hand and watching Argo CD recreate it.
Check yourself
What is the difference between an Application being OutOfSync and being Degraded?
Free resources
- Argo CD documentation (Argo Project)
- Argo CD getting started (Argo Project)