GitOps ist ein Ansatz für kontinuierliche Deployment (insbesondere für Kubernetes), bei dem Git die einzige Quelle der Wahrheit für den gewünschten Zustand von Infrastruktur und Anwendungen ist, und ein automatisierter Agent kontinuierlich den Abgleich durchführt, um den aktuellen Zustand an Git anzupassen. Änderungen werden über Git vorgenommen, und das System zieht sie ein und wendet sie an.
Das GitOps-Modell
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.
