Use this when understanding the GitOps sync loop.
Reconciliation
Reconciliation is the controller's continuous loop of comparing desired state in Git with actual state and applying changes until they match.
1. Reconciliation applies desired state continuously.
2. Auto-sync with prune and self-heal.
3. Sync waves/hooks for ordering.
4. Health checks.
5. Watch failed syncs.
interval → fetch git → diff → apply → health
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
The negative fixture should deliberately exercise risks such as wrong branch/environment, generated manifest drift, controller lag, manual changes, secret/reference failures, prune/delete surprises and green sync status without healthy workload, choosing the cases most relevant to continuous desired-versus-actual comparison, diff ownership, convergence loop, backoff/retry and health/readiness beyond sync completion.
Step 2 Common mistakes Narrow the fault
- Auto-sync with auto-prune enabled before understanding what it deletes.
- Reconciliation errors no one watches.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Reconciliation compares desired and actual state.
- It applies differences.
- It repeats continuously.
argocd app sync <app>— manual syncflux reconcile kustomization <name> --with-source— force reconcilekubectl get events -A | grep -i -e argocd -e flux— controller events
ReferenceWhy it matters1 section · depth on demand
What it is
Reconciliation is the loop where a controller compares desired state (Git) with actual state and applies differences, continuously or on change.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
Reconciliation is the continuous loop at the heart of GitOps: an agent (Argo CD, Flux) compares the desired state in Git with the actual state in the cluster or system, and applies changes to remove any difference. It runs on every Git change and periodically, so manual changes and failed applies are corrected automatically.
| Setting | Effect |
|---|---|
| Sync interval | How often the agent checks (e.g. 3–5 minutes) |
| Auto-sync | Apply differences automatically |
| Self-heal | Revert manual changes in the cluster |
| Prune | Delete resources removed from Git |
argocd app get net-tools
argocd app diff net-tools
flux get kustomizations
flux reconcile kustomization apps --with-source
Enable prune carefully: a mistaken deletion in Git becomes a deletion in production.
Example
flux get kustomizations
argocd app diff myapp
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in GitOps > Reconciliation. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://opengitops.dev/ · confidence 94%Deep reference
Healthy vs suspicious evidence
Output interpretation
For continuous desired-versus-actual comparison, diff ownership, convergence loop, backoff/retry and health/readiness beyond sync completion, prefer typed fields and stable IDs over human presentation text.