重大变更:
- .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}]
55 lines
1.3 KiB
YAML
55 lines
1.3 KiB
YAML
{{/*
|
|
协议模拟器模板 — 遍历 mocks 列表
|
|
每个生成: Deployment + Service
|
|
*/}}
|
|
{{- range .Values.mocks }}
|
|
{{- $root := $ }}
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: {{ .name }}-deployment
|
|
labels:
|
|
{{- include "mixingx.labels" (dict "name" .name "Release" $root.Release) | nindent 4 }}
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/component: {{ .name }}
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/component: {{ .name }}
|
|
spec:
|
|
containers:
|
|
- name: {{ .name }}
|
|
image: {{ $root.Values.registry }}/{{ .image }}:{{ $root.Values.tag | default "latest" }}
|
|
imagePullPolicy: IfNotPresent
|
|
{{- if .scene }}
|
|
args:
|
|
- "--port"
|
|
- "{{ .port }}"
|
|
- "--scene"
|
|
- "{{ .scene }}"
|
|
{{- end }}
|
|
ports:
|
|
- name: tcp
|
|
containerPort: {{ .port }}
|
|
protocol: TCP
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ .name }}-service
|
|
labels:
|
|
{{- include "mixingx.labels" (dict "name" .name "Release" $root.Release) | nindent 4 }}
|
|
spec:
|
|
selector:
|
|
app.kubernetes.io/component: {{ .name }}
|
|
ports:
|
|
- name: tcp
|
|
port: {{ .port }}
|
|
targetPort: tcp
|
|
protocol: TCP
|
|
{{- end }}
|