feat(chart): tier + pointAffinity 模板 + values 块(三层优先级 nodeName>point>tier)
Tasks 5-9: _tier-affinity.tpl + _point-affinity.tpl + values tier 块 + _backend.tpl 三层注入 + instances.yaml 解析 Point 对象。
This commit is contained in:
1 parent
92fcbf7096
commit
e0d680d67c
5 files changed
+217
-9
No files matched your search
@@ -41,6 +41,13 @@ spec:
|
||||
{{- if .rbac }}
|
||||
serviceAccountName: gateway-sa
|
||||
{{- end }}
|
||||
{{- if .nodeName }}
|
||||
nodeName: {{ .nodeName }}
|
||||
{{- else if .pointAffinity }}
|
||||
{{ include "mixingx.pointAffinity" (dict "affinity" .pointAffinity "root" .root) }}
|
||||
{{- else }}
|
||||
{{ include "mixingx.tierAffinity" (dict "role" .role "root" .root) }}
|
||||
{{- end }}
|
||||
containers:
|
||||
- name: {{ .name }}
|
||||
image: {{ $root.Values.registry }}/{{ .image }}:{{ $root.Values.tag | default "latest" }}
|
||||
|
||||
Reference in new issue
Block a user