feat(sanhua): 新增 sanhua 站点 app-of-apps 与环境 values(参考 tuopu-01)——1 Agent + 1 Edge(id: sanhua,idWorkerId=31),镜像版本沿用 tuopu-01 当前 tag,chart 钉版一致;现场暴露 IP/密码留 TODO 待交付核对

This commit is contained in:
薛佳帆 committed 2026-09-15 10:43:28 +08:00
1 parent 5ca8227e67
commit d3414f4912
22 files changed
+672

No files matched your search

+55
View File
@@ -0,0 +1,55 @@
# sanhua — Edge 单元 ApplicationSet(按 environments/sanhua/edges.yaml 清单生成)
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: mixingx-sanhua-edges
namespace: argocd
spec:
goTemplate: true
goTemplateOptions:
- missingkey=error
generators:
- matrix:
generators:
- git:
repoURL: https://gitee.com/mixing-tech/mixingx.deploy.git
revision: release
files:
- path: environments/sanhua/edges.yaml
- list:
elementsYaml: '{{ .edges | toJson }}'
template:
metadata:
name: 'mixingx-edge-{{ .id }}'
spec:
project: default
sources:
- repoURL: https://gitee.com/mixing-tech/mixingx.hub.chart.git
targetRevision: chart-v1.0.19
path: release-charts/mixingx-edge-unit
helm:
releaseName: 'mixingx-edge-{{ .id }}'
valueFiles:
- $values/environments/_common/registry.yaml
- $values/environments/sanhua/image-version.yaml
- $values/environments/sanhua/edge-common-values.yaml
values: |
site: "{{ .id }}"
idWorkerId: {{ .idWorkerId }}
description: "{{ .description }}"
{{- if hasKey . "nodeLabel" }}
nodeSelector:
mixingx.io/edge-node: "{{ .nodeLabel }}"
{{- end }}
- repoURL: https://gitee.com/mixing-tech/mixingx.deploy.git
targetRevision: release
ref: values
destination:
server: https://kubernetes.default.svc
namespace: mixingx
syncPolicy:
automated:
prune: false
selfHeal: true
syncOptions:
- CreateNamespace=true