知识卡片
GitOps对账期望状态
期望配置以声明文件保存在版本库,PR 保留审查和变更历史。同步代理把实际运行状态与期望状态比较,发现漂移便尝试校准。推送式由外部流水线在合并后更新环境,需要保护目标访问授权;拉取式由目标环境内的代理观察并应用受信任提交,可持续发现运行状态变化。
部署状态收敛后,再用[[按契约版本记录符合性]]检查消费者所见行为。
结构图:
flowchart LR
A[提交配置 PR] --> B[版本库期望状态]
B --> C[同步代理]
D[运行环境实际状态] --> C
C --> D
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- API 制品的构建与配置部署 9.4 Deploy and Test stage: Deploying API Gateway configuration · 查看原书依据
GitOps discourages manual changes—for example, via an API gateway user interface (UI)—because they can be error-prone, difficult to debug, and may not have the same audit history that the version-control log provides. Essentially, GitOps combines the approaches of infrastructure as code (IaC), PRs, and CI/CD pipelines. IaC is the practice of maintaining infrastructure configuration declaratively in VCSs.
参考来源
- 位置:《Automating API Delivery APIOps with OpenAPI》《第 09 章 API 制品的构建与配置部署》(9.4 Deploy and Test stage: Deploying API Gateway configuration;来源项目 book-source,extracted/Automating API Delivery APIOps with OpenAPI/_epub-src/OEBPS/Text/chapter-9.xhtml#p180)
- 结论依据:原文把基础设施即代码、PR 和流水线联系起来,邻近段落说明版本化与持续校准。
- 原始内容:GitOps discourages manual changes—for example, via an API gateway user interface (UI)—because they can be error-prone, difficult to debug, and may not have the same audit history that the version-control log provides. Essentially, GitOps combines the approaches of infrastructure as code (IaC), PRs, and CI/CD pipelines. IaC is the practice of maintaining infrastructure configuration declaratively in VCSs.