{{/* 独立实例(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. 前端(无亲和) {{ include "mixingx.frontend" (dict "name" $inst.webName "image" $inst.webImage "basePath" $inst.webBasePath "root" $root) }} # 3. 独立 postgres(无亲和) {{ include "mixingx.postgres" (dict "name" $inst.name "database" $inst.database "pgStorage" $inst.pgStorage "affinity" false "root" $root) }} {{- end }}