- 删除根 Chart.yaml/values.yaml/values-105.yaml 和 templates/(19 文件) - 这些单体 chart 是早期"替代 Aspire publish"的尝试,已被 release-charts/ 取代 - CI(.drone.yml)和 ArgoCD(mixingx-deploy)均只使用 release-charts/ - release-charts 有独立 _helpers.tpl,不依赖主 chart 的任何模板 - README 改写为只描述 release-charts 部署入口
43 lines
1.9 KiB
Markdown
43 lines
1.9 KiB
Markdown
# MixingX.Hub.Chart
|
||
|
||
本仓库以 git submodule 形式挂载在 [mixingx.hub](https://gitee.com/mixing-tech/mixingx.hub) 的 `mixingx-chart/` 路径下。CI(Drone)和 ArgoCD 都通过 `release-charts/` 子目录访问,改路径名会破坏部署链路。
|
||
|
||
## 拆分 Release Charts(唯一部署入口)
|
||
|
||
所有部署(CI lint/template、ArgoCD Application)都使用 `release-charts/` 下的拆分 unit chart,不再有单体主 chart:
|
||
|
||
| Chart | 职责 |
|
||
|---|---|
|
||
| `release-charts/mixingx-infra` | 共享基础设施(redis/mongo/rabbitmq/postgres) |
|
||
| `release-charts/mixingx-platform` | 中央平台服务(sso/ultra/audit/gateway) |
|
||
| `release-charts/mixingx-edge-unit` | 单个 Edge 单元(后端+前端+独立 DB+NanoMQ broker) |
|
||
| `release-charts/mixingx-agent-unit` | 单个 Agent 单元(后端+前端+独立 DB) |
|
||
| `release-charts/mixingx-gateway` | Gateway(带 MQTT broker 发现 RBAC) |
|
||
| `release-charts/mixingx-sso` | SSO(独立发布) |
|
||
| `release-charts/mixingx-ultra` | Ultra(独立发布) |
|
||
| `release-charts/mixingx-audit` | Audit(独立发布) |
|
||
| `release-charts/mixingx-protocol-server-unit` | 协议模拟器单元 |
|
||
|
||
每个 chart 独立 `helm release`,平台升级不会误删客户自加的 edge/agent 单元。
|
||
|
||
## 使用
|
||
|
||
### CI(Drone)lint + template
|
||
|
||
CI 只对 `release-charts/` 做 lint/template(见 hub `.drone.yml`):
|
||
|
||
```bash
|
||
helm lint release-charts/mixingx-edge-unit
|
||
helm template ci-edge release-charts/mixingx-edge-unit
|
||
```
|
||
|
||
### ArgoCD 部署
|
||
|
||
`mixingx-deploy` 的 ApplicationSet 按 unit chart 逐个发布,每个 edge/agent 一个独立 Helm release。详见 `mixingx-deploy/`。
|
||
|
||
## 关联文档
|
||
|
||
- hub [AGENTS.md](https://gitee.com/mixing-tech/mixingx.hub) — 全项目指南
|
||
- `mixingx-deploy/` — ArgoCD Application + 环境 values
|
||
- `docs/superpowers/specs/2026-07-01-node-tier-affinity-design.md` — 三层调度设计
|