Helm图表之间的依存关系是否应该反映微服务之间的依存关系? [英] Should dependencies between Helm charts reflect dependencies between microservices?

查看:481
本文介绍了Helm图表之间的依存关系是否应该反映微服务之间的依存关系?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

鉴于以下服务及其依赖性的方案,我想设计一套Helm图表.

Given a following scheme of services and their dependencies I would like to engineer a set of Helm charts.

  • API Gateway调用Service AService C
  • Service A调用Service B
  • Service B调用Database
  • Service C调用Service BService D
  • API Gateway calls Service A and Service C
  • Service A calls Service B
  • Service B calls Database
  • Service C calls Service B and Service D

此刻,我看到两种选择:

At the moment I see two alternatives:

  1. 下图中的6个组件中的每一个都是单个图表,并且图中的每个箭头都是单个依赖项.

  1. Each of the 6 components in a diagram below is a single chart and each arrow in a diagram is a single dependency.

有一个Umbrella图表依赖于所有其他图表. Database图表是Service B图表的依赖项.

There's an Umbrella chart that has a dependency on all other charts. The Database chart is a dependency of Service B chart.

头盔文档建议选择2.但是,由于易于本地开发和CI/CD开发,因此我更倾向于选项1.

Helm documentation suggest going with option 2. I am however more keen towards option 1 due to an ease of local development and CI/CD pipeline.

场景示例:开发人员正在重构Service C,他想运行更改后的代码并对其进行测试.

Example scenario: developer is refactoring Service C and he wants to run the code he changed and test it.

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆