Skip to content

Linux Foundation Black Friday Sale: Up to 65% off Save now

Back to the blog
CNCF projects6 min read

What is Argo CD? GitOps for Kubernetes, with an example

Sajeeva Nambadawa Vithanage24 Nov 2026 · Senior Software Site Reliability Engineer

Argo CD is a GitOps continuous delivery tool for Kubernetes: you describe your applications in Git, and Argo CD keeps your clusters matching what's there. If you've asked "what is Argo CD" because a job ad, a platform team or the CAPA exam mentioned it, this is the short version with a working example.

It's also topical. At KubeCon + CloudNativeCon North America in Salt Lake City this month, Meta won CNCF's End User Case Study Contest for a GitOps platform built on Argo CD and Kargo, which cut routine deployments from more than four hours to minutes across about 100 Kubernetes clusters. Our Argo project page collects what we have on it.

Key points

  • Argo CD is part of the Argo project, a CNCF graduated project since 6 December 2022 (accepted on 26 March 2020).
  • It pulls desired state from Git and compares it with the live cluster. Anything different shows as OutOfSync, and Argo CD can fix it for you.
  • It works with plain YAML, Helm, Kustomize and Jsonnet.
  • Argo CD is 34% of the CAPA exam; Argo Workflows, Rollouts and Events make up the rest.

What is Argo CD, and what problem does it solve?

Without GitOps, deployments usually push changes into the cluster: a CI job runs kubectl apply or helm upgrade with cluster credentials. That works, until someone edits a Deployment by hand, a pipeline fails half-way, or you need to know exactly what is running in production.

Argo CD turns that around. Git holds the desired state. Argo CD runs inside the cluster, reads the repository and applies the manifests. Git becomes the record of what should be running, and every change goes through a commit and a review. Rolling back is a revert.

The Argo project describes itself as "Kubernetes-native tools to run workflows, manage clusters, and do GitOps right." Argo CD is the GitOps part; the others are Argo Workflows, Argo Rollouts (progressive delivery) and Argo Events.

How Argo CD works

Argo CD has three main components:

  • API server: the gRPC/REST API behind the web UI, the argocd CLI and CI systems. It handles authentication, RBAC, Git webhooks and operations such as sync and rollback, and stores repository and cluster credentials as Kubernetes Secrets.
  • Repository server: keeps a local cache of your Git repositories and renders the manifests for a given repo, revision and path (including Helm values or Kustomize settings).
  • Application controller: a Kubernetes controller that keeps comparing the live state with the target state. It reports drift as OutOfSync, can correct it, and runs PreSync, Sync and PostSync hooks.

The unit you work with is an Application, a custom resource that says "take this path in this repo and deploy it to this cluster and namespace".

Argo CD tutorial: a small example

This follows the official getting-started guide and the project's public example repository.

1. Install Argo CD into its own namespace:

kubectl create namespace argocd
kubectl apply -n argocd --server-side --force-conflicts \
  -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml

For production, the docs recommend pinning a version rather than stable.

2. Reach the API server and log in:

kubectl port-forward svc/argocd-server -n argocd 8080:443
argocd admin initial-password -n argocd
argocd login localhost:8080 --insecure

The default install uses a self-signed certificate, which is why --insecure is there. Change the admin password with argocd account update-password, then delete the argocd-initial-admin-secret Secret.

3. Describe the application declaratively. You can create it with argocd app create or the UI, but the GitOps way is to keep the Application itself in Git:

apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: guestbook
  namespace: argocd
spec:
  project: default
  source:
    repoURL: https://github.com/argoproj/argocd-example-apps.git
    targetRevision: HEAD
    path: guestbook
  destination:
    server: https://kubernetes.default.svc
    namespace: default
  syncPolicy:
    automated:
      prune: true
      selfHeal: true

https://kubernetes.default.svc means "the cluster Argo CD runs in". To deploy to another cluster, register it first with argocd cluster add <context>.

4. Check and sync:

argocd app get guestbook    # OutOfSync / Missing before the first sync
argocd app sync guestbook

With automated set, you don't need to sync by hand. Two options are off by default and worth understanding:

  • prune: true deletes resources that you've removed from Git. Without it, automated sync leaves them in the cluster.
  • selfHeal: true syncs again when someone changes the live cluster. Without it, a manual kubectl edit stays until the next change in Git.

Reality check: the guestbook example may only support AMD64 images, so on an ARM laptop cluster it can fail for reasons that have nothing to do with Argo CD.

Argo CD vs Flux and other tools

The closest comparison is Flux, also a CNCF graduated project (since 30 November 2022). Both pull from Git and reconcile continuously. Argo CD puts the Application resource, a web UI and multi-cluster management at the centre; Flux is built as a set of controllers (the GitOps Toolkit) that you compose. Many teams choose by whether they want the UI and the Application model, or a lighter set of controllers. One of our members wrote a hands-on Flux walkthrough if you want to compare.

Argo CD also works alongside other tools rather than replacing them. Helm and Kustomize render the manifests; Argo CD decides when and where they're applied. Argo Rollouts adds canary and blue-green releases. Kargo, which Meta used, handles promoting releases between environments.

How to get started with Argo CD

  1. Run the example above on a local cluster (kind, minikube or k3d), then break it: edit the Deployment by hand and watch selfHeal put it back.
  2. Move one real service to an Application in Git, with prune off at first.
  3. Read the Argo project page on CertDirectory for the related projects and our other posts about Argo.
  4. If you want a credential, the CAPA covers Argo CD alongside Workflows, Rollouts and Events. It's a 90-minute, online, multiple-choice exam. Our CAPA discount page and the LFS256 + CAPA bundle have the current offers.

Pro tip: for the CAPA, don't stop at Argo CD. Argo Workflows carries 36% of the exam, more than Argo CD's 34%.

FAQ

What is Argo CD used for? Deploying applications to Kubernetes from Git and keeping them there. It compares the cluster with the repository, shows any drift, and can correct it automatically.

Is Argo CD a CI tool? No. It handles continuous delivery. Your CI system still builds and tests images; Argo CD deploys the manifests that reference them.

Is Argo CD free? Yes. It's open source under the CNCF's Argo project. Some vendors offer managed or commercial versions.

What's the difference between Argo CD and Argo Workflows? Argo CD keeps clusters in sync with Git. Argo Workflows runs multi-step jobs as Kubernetes pods, such as CI pipelines, data processing and machine learning jobs.

Argo CD vs Flux: which should I learn? Learn the GitOps model first; it carries over. If you're aiming for the CAPA, start with Argo CD. The CGOA covers GitOps principles in general.

Sources