GitOps adalah pendekatan untuk continuous deployment (khususnya untuk Kubernetes) di mana Git adalah single source of truth untuk desired state dari infrastruktur dan aplikasi, dan sebuah automated agent secara kontinyu merekonsiliasi actual state agar sesuai dengan Git. Perubahan dilakukan melalui Git, dan sistem menarik serta menerapkannya.
Model 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.
