GitOps とは?
GitOps は、インフラとアプリケーションの望ましい状態を git リポジトリで宣言し、自動化された controller がライブ環境をそれに一致するよう継続的に調整する運用モデルです。変更は cluster を直接触るのではなく、git に commit することで行われます。これにより deployment はコードと同じレビュー、監査証跡、rollback を持ちます。
なぜ重要か
本番への手動変更は監査が難しく、忘れやすいものです。GitOps は git を単一の真実のソースにするため、すべての変更がレビューされ、バージョン管理され、可逆になり、あらゆるドリフトは commit された状態へ自動的に修正されます。
関連する概念
- 通常は pull-based で、cluster 内の agent を伴う
- ドリフト検出と調整がその中核
- ツールには Argo CD や Flux がある
関連ガイド
What Is Pull-Based Deployment?In pull-based deployment, an agent inside the target environment fetches and applies the desired state, rathe…
What Is Drift Detection?Drift detection finds differences between the desired state declared in code and the actual live state of inf…
What Is a Declarative Pipeline?A declarative pipeline describes the desired stages and outcomes of CI/CD, letting the system figure out how…