GitOps è un approccio al continuous deployment (in particolare per Kubernetes) dove Git è l'unica fonte di verità per lo stato desiderato dell'infrastruttura e delle applicazioni, e un agente automatizzato continuamente riconcilia lo stato effettivo per farlo corrispondere a Git. Le modifiche vengono apportate tramite Git, e il sistema le estrae e le applica.
Il modello GitOps
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.
