Files
mixingx.hub.chart/templates/gateway-rbac.yaml
T
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

37 lines
794 B
YAML

{{/*
Gateway K8s 服务发现 RBAC
gateway 需要读 Service 列表(查 mixingx.io/role 标签)来发现 agent/edge 等
*/}}
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: gateway-sa
labels:
app.kubernetes.io/component: gateway
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: gateway-service-reader
labels:
app.kubernetes.io/component: gateway
rules:
- apiGroups: [""]
resources: ["services"]
verbs: ["get", "list", "watch"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: gateway-service-reader-binding
labels:
app.kubernetes.io/component: gateway
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: gateway-service-reader
subjects:
- kind: ServiceAccount
name: gateway-sa