How does Argo CD work and what is an Application?
IntermediateConceptDeployment Strategies and GitOps
Answer
Argo CD runs in the cluster, watches Git repos, renders manifests (plain YAML, Helm, Kustomize), compares them to live state, and reports Synced/OutOfSync and Healthy/Degraded. An Application custom resource links a source (repo, path, revision) to a destination (cluster, namespace) and a sync policy. With automated: { prune: true, selfHeal: true } it applies changes and reverts manual drift.
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata: { name: shop-api, namespace: argocd }
spec:
project: default
source:
repoURL: https://github.com/acme/deploy-config
targetRevision: main
path: apps/shop-api/overlays/prod
destination: { server: https://kubernetes.default.svc, namespace: shop }
syncPolicy:
automated: { prune: true, selfHeal: true }