From 5351c1ed90fa83751f007ed246a8987df4bc3f95 Mon Sep 17 00:00:00 2001 From: zhangxinhui02 Date: Tue, 23 Dec 2025 03:01:31 +0800 Subject: [PATCH] =?UTF-8?q?fix(helm=20chart):=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E9=A2=84=E5=A4=84=E7=90=86=E4=BB=BB=E5=8A=A1=E7=9A=84=E8=8A=82?= =?UTF-8?q?=E7=82=B9=E9=80=89=E6=8B=A9=E5=8F=82=E6=95=B0=EF=BC=8C=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E8=B7=A8=E8=8A=82=E7=82=B9=E5=AD=98=E5=82=A8=E5=8D=B7?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/other/job-preprocessor.yaml | 20 +++++++++---------- helm-chart/values.yaml | 3 +++ 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/helm-chart/templates/other/job-preprocessor.yaml b/helm-chart/templates/other/job-preprocessor.yaml index cacb568d..8cb37637 100644 --- a/helm-chart/templates/other/job-preprocessor.yaml +++ b/helm-chart/templates/other/job-preprocessor.yaml @@ -35,20 +35,20 @@ spec: value: {{ .Values.config.core_model_config | b64enc | quote }} {{- end }} volumeMounts: - - mountPath: /app/config/adapter/config.toml + - mountPath: /app/config/adapter name: adapter-config - subPath: config.toml - - mountPath: /app/config/core/.env + - mountPath: /app/config/core name: core-config - subPath: .env - - mountPath: /app/config/core/bot_config.toml - name: core-config - subPath: bot_config.toml - - mountPath: /app/config/core/model_config.toml - name: core-config - subPath: model_config.toml imagePullSecrets: {{ toYaml .Values.pre_processor.image.pullSecrets | nindent 8 }} + {{- if .Values.pre_processor.nodeSelector }} + nodeSelector: + {{ toYaml .Values.pre_processor.nodeSelector | nindent 8 }} + {{- end }} + {{- if .Values.pre_processor.tolerations }} + tolerations: + {{ toYaml .Values.pre_processor.tolerations | nindent 8 }} + {{- end }} volumes: - name: adapter-config persistentVolumeClaim: diff --git a/helm-chart/values.yaml b/helm-chart/values.yaml index 0d612916..50a01be5 100644 --- a/helm-chart/values.yaml +++ b/helm-chart/values.yaml @@ -13,6 +13,9 @@ pre_processor: pullPolicy: IfNotPresent pullSecrets: [ ] + nodeSelector: { } + tolerations: [ ] + # 麦麦Adapter的部署配置 adapter: