ドリフト検出とは?
ドリフト検出とは、infrastructure-as-code や設定で宣言された望ましい状態を、デプロイされたシステムの実際の現在の状態と比較して不一致を見つけるプロセスです。ドリフトは、誰かが手動で変更を加えたり、外部プロセスがリソースを変更したりすると発生します。それを検出することで、チームは現実を真実のソースへと調整し直すことができます。
なぜ重要か
ライブのインフラが宣言された定義と一致しなくなると、次の deploy が予測不能な挙動をしたり、重要な修正を元に戻したりする可能性があります。ドリフト検出はこれらのギャップを早期に表面化させ、意図的に調整できるようにします。これは GitOps と信頼性の高い infrastructure-as-code の中核です。
関連する概念
- terraform plan は state に対するドリフトを明らかにする
- GitOps の controller はドリフトを継続的に調整する
- 冪等で宣言的な定義は調整を安全にする
関連ガイド
What Is GitOps?GitOps uses a git repository as the single source of truth for infrastructure and deployments, with automatio…
What Is a Declarative Pipeline?A declarative pipeline describes the desired stages and outcomes of CI/CD, letting the system figure out how…
What Is Idempotency?An idempotent operation produces the same result whether it runs once or many times, making retries and re-ru…