Pcornel
Automation · Automation Fundamentals

GitOps

Cheat sheet · https://pcornel.dk/topic.php?topic=5170

Back to the Topic

Answer

GitOps uses version-controlled desired state plus an automated reconciliation mechanism so reviewed repository changes drive managed environment convergence with traceable history.

Remember

  • Git commit merged ≠ environment reconciled.
  • GitOps ≠ CI/CD alone; the defining boundary is authoritative desired state plus reconciliation toward it.
  • Repository clean ≠ target drift-free; out-of-band changes require detection by the reconciler or drift checks.
  • Rollback commit ≠ restored service automatically; reconciliation and dependent data/state must also recover.

First checks

  • argocd app list — app sync status
  • flux get kustomizations — Flux status
  • git log --oneline -5 — changes via git

Verify in this order

git commit → agent pulls → reconcile → cluster/infra

Where it usually breaks

Git history proves desired-state change and review lineage; it does not prove the reconciler applied the revision or that the target/service is healthy.

GitOps automation boundary map

BoundaryHealthy evidenceSuspicious evidence
Intent / inputsOwner, scope and authoritative inputs are explicit and versioned where applicableHidden defaults, stale inventory or competing sources of truth
Decision / executionPlan or decision is explainable and actions are bounded per targetBlind fan-out, implicit assumptions or success based only on executor status
State / verificationTarget is re-observed and acceptance criteria prove the intended outcomeNo read-back, perpetual drift, partial side effects or unresolved exceptions
Recovery / evidenceRetry, rollback or escalation behavior is defined and auditableUnknown partial completion, unsafe retry or evidence lost during remediation

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5170

Confirmation

Confirm action

Continue?