Pull-Based Deployment とは?
pull-based deployment は、ターゲット環境内で動作する agent が真実のソース(git repo や registry など)を継続的に監視し、変更を取り込んで自ら適用するモデルです。CI システムは環境に到達することはなく、望ましい状態を更新するだけです。これは GitOps に最も関連するデプロイスタイルです。
なぜ重要か
pull-based deploy は、CI に本番への広範な認証情報を渡すことを避けられます。cluster 内の agent は既に必要なアクセスを持ち、それだけが環境を変更できるからです。これは攻撃対象領域を狭め、deploy のロジックを管理対象の workload の近くに保ちます。
関連する概念
- push-based deployment と対比される
- Argo CD や Flux などの GitOps ツールの中核
- 環境への外部認証情報を減らす
関連ガイド
What Is Push-Based Deployment?In push-based deployment, the CI/CD pipeline actively connects to the target environment and applies the new…
What Is GitOps?GitOps uses a git repository as the single source of truth for infrastructure and deployments, with automatio…
What Is the Principle of Least Privilege?Least privilege means granting every user, job, or token only the minimum permissions needed to do its task a…