ximenchuifeng
|
e0d680d67c
|
feat(chart): tier + pointAffinity 模板 + values 块(三层优先级 nodeName>point>tier)
Tasks 5-9: _tier-affinity.tpl + _point-affinity.tpl + values tier 块 +
_backend.tpl 三层注入 + instances.yaml 解析 Point 对象。
|
2026-07-01 13:04:53 +08:00 |
|
ximenchuifeng
|
4c031d7cf7
|
refactor(chart): instances 数组改为 agents/edges 字符串数组,模板自动推导资源名
|
2026-06-30 08:27:25 +08:00 |
|
ximenchuifeng
|
7854605631
|
fix(chart): agent-0/edge-0 前端无限重定向(webBasePath 尾斜杠致双斜杠)
Drone→105 部署后访问 app.mixingx.local/agent-0/ 报
ERR_TOO_MANY_REDIRECTS。根因:values.yaml 的 webBasePath 带尾斜杠
(/agent-0/),_frontend.tpl 注入 VITE_BASE_PATH,agent/edge Dockerfile
sed s|/__BASE__|...$VITE_BASE_PATH|g 配合 nginx.conf 本身已带的尾斜杠
(location /__BASE__/、return 302 /__BASE__/)→ 拼成 /agent-0//。渲染后的
location /agent-0// 匹配不到 /agent-0/(单斜杠)→ 落 location / →
return 302 /agent-0// → try_files 在 alias 下找不到 → 死循环。
sso/ultra 不受影响(nginx.conf 硬编码 /sso/,不走 __BASE__ 占位符)。
双重修复:
1. values.yaml agent-0/edge-0 webBasePath 去尾斜杠(对齐 add-node.sh 约定)
2. monorepo agent/edge Dockerfile 加 BASE=${BASE%/} 兜底(已在 submodule
90657c0 推送),即使 values 误配带斜杠也不会再死循环
验证:sh 模拟 5 种 VITE_BASE_PATH 输入全部渲染单斜杠 location /agent-0/。
|
2026-06-26 12:24:54 +08:00 |
|
ximenchuifeng
|
8ffc6ee825
|
feat(chart): instances/standalones 改 range 循环 + 全部镜像加时区
== helm chart 标准化 ==
- instances/standalones: 写死文件 → range 循环(加/删点位只改 values)
- values 加 webName(显式前端名)+ description(Gateway 中文展示名)
- _backend.tpl: Service 加 mixingx.io/description annotation + 补 ultra serviceId
- _frontend.tpl/audit.yaml/mock.yaml: 注入 TZ env
- values 加 timezone 变量(部署地域可覆盖,默认 Asia/Shanghai)
- 修 app-ingress.yaml gatewayService/gatewayPort undefined bug
- 验证: helm diff 资源数一致(61=61),加 agent-beijing 点位 8 资源全部正确生成
== 12 个 Dockerfile 加时区 ==
后端(.NET debian): apt-get tzdata + ln /etc/localtime + ENV TZ
前端(nginx alpine): apk add tzdata
audit(node alpine): apk add tzdata
mock(opcua/s7): 同上
镜像内置 Asia/Shanghai 兜底 + helm TZ env 覆盖 = 双保险
== submodule Dockerfile 重写 ==
agent/edge/ultra: 重写适配 hub 根 context(含 ServiceDefaults 跨仓库引用)
sso/gateway: 加时区
== submodule 指针更新 ==
7 个 submodule 指针全部更新
|
2026-06-25 10:37:52 +08:00 |
|
ximenchuifeng
|
f69c4161b5
|
feat: CI/CD 全链路(Drone pipeline + Helm chart + Dockerfile)
重大变更:
- .drone.yml: 4 步 pipeline(submodule init → build 12 镜像 → helm deploy → verify)
- mixingx-chart/: 手写 Helm chart(模式 3,替代 aspire publish)
- 独立 postgres(每服务一个,不再共享)
- 四胞胎架构(agent/edge: 后端+前端+DB podAffinity 同节点)
- pgAdmin(在 K3s 内,管理所有 postgres)
- Aspire Dashboard(OTLP 遥测接收端)
- Dockerfile: 全部服务已补齐(含 gateway/audit 新增)
- apphost.cs: opcua mock publish 模式改 AddDockerfile
- patch-persistence.sh: emptyDir → PVC patch(备用)
submodule 指针更新:
- mixingx.sso: Dockerfile 精准 COPY
- mixingx.edge: opcua Dockerfile 新增
- eau.ultra: MigrateAsync 无条件执行
- mixingx.audit: Dockerfile 新增
- mixingx.gateway: Dockerfile 新增
镜像 tag 规则: {分支}-{时间戳}-[{tag}]
|
2026-06-24 18:06:37 +08:00 |
|