What is ArgoCD? GitOps Deployments for Kubernetes

A practical DevOps definition, with an example you can use.

Argo CD (often written ArgoCD) is an open-source GitOps continuous delivery tool for Kubernetes. It compares the desired application configuration stored in Git with the resources running in a cluster. You can review the differences and deploy manually, or enable automated sync.

For example, your CI pipeline builds and tests a container image. A reviewed Git change updates the image tag in a Kubernetes manifest or Helm values file. Argo CD detects that configuration change and can deploy it to the cluster. CI builds the artifact; Argo CD manages its Kubernetes delivery.

A pipeline can also deploy directly with kubectl apply or helm upgrade. Argo CD offers a different model: a controller compares live resources with version-controlled configuration and makes deployment differences visible. See the official Argo CD overview for the project architecture.

How ArgoCD Works

ArgoCD installs as a set of controllers and a UI in your cluster. You define an Application resource that tells ArgoCD:

  • Where to find the configuration (a Git repo URL and path)
  • What Kubernetes cluster and namespace to deploy into
  • What tool renders the manifests (raw YAML, Helm, Kustomize, Jsonnet)

ArgoCD's reconciliation loop then runs continuously:

  1. Fetch the latest commit from the Git repository
  2. Render the manifests (run helm template if it is a Helm chart, apply Kustomize overlays, etc.)
  3. Compare the rendered manifests to the live cluster state
  4. If they differ: report the diff, and optionally apply it automatically

Installing ArgoCD

Use a disposable learning cluster, with kubectl configured to reach it. The commands below follow the official getting-started guide for a fresh install in the argocd namespace. Install the Argo CD CLI separately before running argocd commands. The stable branch changes over time; pin a supported release and follow its upgrade instructions for production.

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

# Wait for pods to be ready
kubectl wait --for=condition=available deployment \
  -l app.kubernetes.io/name=argocd-server \
  -n argocd --timeout=120s

# Get the initial admin password
argocd admin initial-password -n argocd

# Port-forward to access the UI locally
kubectl port-forward svc/argocd-server -n argocd 8080:443

Open https://localhost:8080 while port forwarding runs and sign in as admin with the initial password. A fresh install uses a self-signed certificate. The server-side installation flags address large custom resource definitions; --force-conflicts takes ownership of conflicting fields, so do not reuse this fresh-install example blindly against an existing installation.

Defining an Application

This is a template, not a ready-to-run application. Replace the repository URL, chart path and values file with your own. Start in a learning namespace and review the sync policy before applying it.

apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: api-server
  namespace: argocd
  finalizers:
    - resources-finalizer.argocd.argoproj.io  # Cascade-delete on app removal
spec:
  project: default
  source:
    repoURL: https://github.com/mycompany/k8s-config
    targetRevision: main
    path: apps/production/api-server
    helm:
      valueFiles:
        - values-production.yaml
  destination:
    server: https://kubernetes.default.svc
    namespace: production
  syncPolicy:
    automated:
      prune: true      # Remove resources deleted from Git
      selfHeal: true   # Revert manual changes
    syncOptions:
      - CreateNamespace=true

With automated sync enabled, selfHeal: true lets Argo CD correct changes made directly to live resources. prune: true also permits deletion of managed resources removed from Git. Neither setting is required simply to compare Git with the cluster. The automated sync policy documentation explains these controls.

Argo CD vs CI: which tool does what?

ResponsibilityTypical toolEvidence to inspect
Test application changes and build an imageJenkins or GitHub ActionsTest results, build logs and image digest
Describe the version to deployGit repository with manifests or Helm valuesReviewed commit and image reference
Compare and deploy Kubernetes configurationArgo CDApplication diff, sync result and resource health

Argo CD does not build your application image by itself. A working GitOps deployment still needs a trustworthy build process, access controls and an explicit decision about automatic sync.

The ArgoCD UI

ArgoCD's web interface shows application resources and their status. The application graph visualizes every Kubernetes resource that belongs to an application - Deployments, ReplicaSets, Pods, Services, Ingresses - and shows their health status (Healthy, Degraded, Progressing, Missing). The diff view shows exactly what would change before you click sync.

For live incidents, being able to see at a glance that production is out of sync with main, and what the diff is, is faster than running kubectl get across a dozen resources.

Application Health and Sync Status

ArgoCD distinguishes between two orthogonal states:

Sync status: does the cluster match Git? (Synced, OutOfSync, Unknown) Health status: are the running resources actually healthy? (Healthy, Progressing, Degraded, Suspended, Missing)

A deployment can be Synced (cluster matches Git) but Degraded (pods are crash-looping). A deployment can be OutOfSync (new commit in Git) but Healthy (old version is running fine). This distinction is essential for operating deployments confidently.

ArgoCD in a Real Pipeline

The typical integration with CI looks like this:

  1. Developer merges a PR to the application code repository
  2. CI builds, tests, and pushes a new Docker image tagged v1.5.0
  3. CI opens a PR against the GitOps config repo, updating values-production.yaml to image.tag: v1.5.0
  4. The config PR is reviewed and merged (or auto-merged for staging)
  5. ArgoCD detects the new commit, renders the Helm chart with the new image tag, and applies the diff to the cluster

In this workflow, the image-build pipeline does not need direct Kubernetes deployment credentials. Argo CD still needs permission to manage its destination cluster, and remote cluster credentials require appropriate protection. Reverting the configuration commit can restore an earlier desired configuration, but it does not undo database migrations or other external side effects.

Practise the deployment loop

In a learning cluster, deploy a small application from your own Git repository. Record the initial Git commit and image tag, then update the tag through a reviewed change. Before syncing, inspect the diff. Afterwards, compare sync status with health status. Finally, revert the configuration commit and explain what changed in the cluster.

Save the manifests, relevant command output and a short explanation in your project README. This gives you evidence of a deployment decision, rather than only a screenshot of a green status. Review beginner DevOps projects if you need an application to start with.

For a deeper look at the pull-model and GitOps principles, see what is GitOps. For chart packaging, see what is Helm. For the full Kubernetes picture, see the Kubernetes guide for beginners.

Technical references

Checked on 31 October 2026. Consult the Argo CD overview, installation guide and sync policy reference for version-specific behaviour. For the comparison above, see the Flux documentation. The Argo CD licence covers the open-source software.

Frequently asked questions

What is ArgoCD?

Argo CD is an open-source continuous delivery tool for Kubernetes. It compares application configuration in Git with the running cluster and reports differences. Deployment can be triggered manually or through an automated sync policy.

What is the difference between ArgoCD and Flux?

Argo CD and Flux both support GitOps delivery to Kubernetes. Argo CD includes an application-focused web interface. Flux provides controllers for sources, Kustomize and Helm, with optional ecosystem interfaces. Compare repository structure, access controls and operational needs when choosing.

How does ArgoCD work?

An Application resource identifies the Git repository, configuration path and destination cluster. Argo CD renders the manifests and compares them with live resources. Sync applies the desired configuration. Automated deployment, deletion of removed resources and correction of manual changes each depend on the sync policy.

Is ArgoCD free?

The Argo CD software is open source under the Apache 2.0 licence. Running it still requires Kubernetes resources and operational work. Managed services and commercial support can have separate charges.

Does ArgoCD replace Jenkins or GitHub Actions?

Argo CD handles Kubernetes delivery, while a CI tool such as Jenkins or GitHub Actions can build, test and publish container images. A common workflow uses CI to propose an image-tag change in Git, then Argo CD deploys that reviewed configuration.