feat: 切换应用为1.7.1版本

This commit is contained in:
2025-07-30 12:29:36 +08:00
parent c19b37f9f1
commit d0dc4a3410
12 changed files with 357 additions and 77 deletions
+25 -2
View File
@@ -21,8 +21,11 @@ spec:
{{/*
# Required labels for istio
# app: {{ template "dify.worker.fullname" . }}
# version: {{ (print "v" .Values.serviceMesh.version) | quote }}
# version: {{ .Values.istioServiceMesh.version | quote }}
*/}}
{{- if .Values.worker.updateStrategy }}
strategy: {{- toYaml .Values.worker.updateStrategy | nindent 4 }}
{{- end }}
template:
metadata:
annotations:
@@ -35,11 +38,14 @@ spec:
{{/*
# Required labels for istio
# app: {{ template "dify.worker.fullname" . }}
# version: {{ (print "v" .Values.serviceMesh.version) | quote }}
# version: {{ .Values.istioServiceMesh.version | quote }}
*/}}
{{ include "dify.ud.labels" . | indent 8 }}
spec:
serviceAccountName: {{ include "dify.worker.serviceAccountName" . }}
{{- if .Values.worker.priorityClassName }}
priorityClassName: {{ .Values.worker.priorityClassName | quote }}
{{- end }}
{{- if .Values.image.api.pullSecrets }}
imagePullSecrets:
{{- range .Values.image.api.pullSecrets }}
@@ -59,6 +65,23 @@ spec:
volumeMounts:
- name: python-config
mountPath: /root/.config/pip
{{- if .Values.api.migration }}
- name: check-api
image: "{{ .Values.image.api.repository }}:{{ default .Chart.AppVersion .Values.image.api.tag }}"
command:
- sh
- -c
- |
until curl http://{{ template "dify.api.fullname" . }}:{{ .Values.api.service.port }}/health; do
echo "Waiting for API service to be available..."
sleep 1
done
envFrom:
- configMapRef:
name: {{ template "dify.worker.fullname" . }}
- secretRef:
name: {{ template "dify.worker.fullname" . }}
{{- end }}
containers:
- image: "{{ .Values.image.api.repository }}:{{ default .Chart.AppVersion .Values.image.api.tag }}"
imagePullPolicy: "{{ .Values.image.api.pullPolicy }}"