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: