GitOps เป็นแนวทางสำหรับ continuous deployment (โดยเฉพาะสำหรับ Kubernetes) ที่ Git เป็นแหล่งข้อมูลความจริงเดียว (single source of truth) สำหรับสถานะที่ต้องการของ infrastructure และแอปพลิเคชัน และมี agent อัตโนมัติที่ reconcile สถานะจริงให้ตรงกับ Git อย่างต่อเนื่อง การเปลี่ยนแปลงทำผ่าน Git และระบบจะ pull และนำมาใช้
โมเดล 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.
