Automation · Automation Fundamentals
GitOps
Cheat sheet · https://pcornel.dk/topic.php?topic=5170
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 statusflux get kustomizations— Flux statusgit 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
| Boundary | Healthy evidence | Suspicious evidence |
|---|---|---|
| Intent / inputs | Owner, scope and authoritative inputs are explicit and versioned where applicable | Hidden defaults, stale inventory or competing sources of truth |
| Decision / execution | Plan or decision is explainable and actions are bounded per target | Blind fan-out, implicit assumptions or success based only on executor status |
| State / verification | Target is re-observed and acceptance criteria prove the intended outcome | No read-back, perpetual drift, partial side effects or unresolved exceptions |
| Recovery / evidence | Retry, rollback or escalation behavior is defined and auditable | Unknown 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