GitOps er en tilgang til continuous deployment (især for Kubernetes), hvor Git er den eneste kilde til sandhed for den ønskede tilstand af infrastruktur og applikationer, og en automatiseret agent kontinuerligt afstemmer den faktiske tilstand til at matche Git. Ændringer foretages via Git, og systemet trækker og anvender dem.
GitOps-modellen
Git holds the DESIRED STATE (declarative configs: Kubernetes manifests, Helm charts, etc.):
→ an AGENT in the cluster continuously COMPARES actual state vs Git (desired state)
→ it RECONCILES: automatically applies changes to make reality match Git
→ to deploy/change: commit to Git → the agent detects and applies it (PULL-based)
→ Git = single source of truth; the system continuously converges to it.
