Files
mixingx.hub.chart/templates/standalones.yaml
T
ximenchuifeng 132285c253 feat(chart): _frontend/_postgres affinity 合并 + audit/shared-infra 注入 + bump 1.2.0
Tasks 10-11: podAffinity+nodeAffinity 合并到同一 affinity 块;
audit/shared-infra 走 tier;Chart.yaml 1.1.0→1.2.0。
2026-07-01 13:14:07 +08:00

19 lines
1.1 KiB
YAML

{{/*
独立实例(sso/ultra)— 遍历 values.standalones 数组
每个实例生成:后端 Deployment + 前端 Deployment + 独立 postgres StatefulSet(无亲和,多副本)
与 instances 的差异:无 podAffinity、replicas 可 >1、pgStorage 量级更大。
*/}}
{{- range $inst := .Values.standalones }}
{{- $root := $ }}
# ═══ 实例: {{ $inst.name }} ({{ $inst.description }}) ═══
# 1. 后端(多副本)
{{ include "mixingx.backend" (dict "name" $inst.name "image" $inst.image "role" $inst.role "replicas" $inst.replicas "serviceId" $inst.serviceId "database" $inst.database "description" $inst.description "root" $root) }}
# 2. 前端(无 podAffinity,走 tier nodeAffinity)
{{ include "mixingx.frontend" (dict "name" $inst.webName "image" $inst.webImage "basePath" $inst.webBasePath "tierRole" $inst.role "root" $root) }}
# 3. 独立 postgres(无 podAffinity,走 tier nodeAffinity)
{{ include "mixingx.postgres" (dict "name" $inst.name "database" $inst.database "pgStorage" $inst.pgStorage "affinity" false "tierRole" $inst.role "root" $root) }}
{{- end }}