GitOps to podejście do ciągłego wdrażania (zwłaszcza dla Kubernetes), w którym Git jest pojedynczym źródłem prawdy dotyczącym pożądanego stanu infrastruktury i aplikacji, a zautomatyzowany agent ciągle reconciliuje rzeczywisty stan, aby pasował do Git. Zmiany wprowadza się za pośrednictwem Git, a system pobiera i zastosowuje je.
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.
