GitOps er en tilnærming til kontinuerlig deployment (spesielt for Kubernetes) hvor Git er den eneste kilden til sannhet for ønsket tilstand av infrastruktur og applikasjoner, og en automatisert agent forsoner kontinuerlig den faktiske tilstanden for å matche Git. Endringer gjøres via Git, og systemet henter og bruker 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.
