GitOps 是一种持续部署的方法(特别是对于Kubernetes),其中Git是基础设施和应用程序所需状态的唯一真实来源,一个自动化代理持续协调实际状态以匹配Git。通过Git进行更改,系统拉取并应用这些更改。
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.
