GitOps é uma abordagem para continuous deployment (especialmente para Kubernetes) onde Git é a única fonte de verdade para o estado desejado da infraestrutura e aplicações, e um agente automatizado continuamente reconcilia o estado atual para corresponder ao Git. As mudanças são feitas via Git, e o sistema as puxa e aplica.
O modelo 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.
