From 2dc2000c2f559ad361f893c5cb50dd2986a524a5 Mon Sep 17 00:00:00 2001 From: majian159 <46617237@qq.com> Date: Tue, 14 May 2024 14:38:09 +0800 Subject: [PATCH] 1. Upgrade dify version to 0.6.8 2. Change default tag for sandbox to 0.2.0, latest does not point to the newest version 3. Use configmap to mount sandbox's python-requirements.txt 4. Update chart version to 0.3.4 --- charts/dify/Chart.yaml | 2 +- charts/dify/templates/configmap.yaml | 7 +++++++ charts/dify/templates/deployment.yaml | 8 ++++++++ charts/dify/values.yaml | 2 +- 4 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 charts/dify/templates/configmap.yaml diff --git a/charts/dify/Chart.yaml b/charts/dify/Chart.yaml index 8bc8ced..1d3928d 100644 --- a/charts/dify/Chart.yaml +++ b/charts/dify/Chart.yaml @@ -26,7 +26,7 @@ version: 0.3.4 # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: "0.6.3" +appVersion: "0.6.8" dependencies: - name: redis diff --git a/charts/dify/templates/configmap.yaml b/charts/dify/templates/configmap.yaml new file mode 100644 index 0000000..fe16122 --- /dev/null +++ b/charts/dify/templates/configmap.yaml @@ -0,0 +1,7 @@ +--- +apiVersion: v1 +kind: ConfigMap +metadata: + name: {{ include "dify.fullname" . }}-config +data: + python-requirements.txt: "" diff --git a/charts/dify/templates/deployment.yaml b/charts/dify/templates/deployment.yaml index 245e747..c3fdfdb 100644 --- a/charts/dify/templates/deployment.yaml +++ b/charts/dify/templates/deployment.yaml @@ -315,6 +315,10 @@ spec: value: {{ .Values.sandbox.apiKey | quote }} {{- else }} {{- end }} + volumeMounts: + - name: config-volume + mountPath: /dependencies/python-requirements.txt + subPath: python-requirements.txt ports: - name: http containerPort: {{ .Values.sandbox.containerPort }} @@ -341,3 +345,7 @@ spec: tolerations: {{- toYaml . | nindent 8 }} {{- end }} + volumes: + - name: config-volume + configMap: + name: dify-config diff --git a/charts/dify/values.yaml b/charts/dify/values.yaml index 2179eaa..cdadfe3 100644 --- a/charts/dify/values.yaml +++ b/charts/dify/values.yaml @@ -292,7 +292,7 @@ sandbox: repository: langgenius/dify-sandbox pullPolicy: IfNotPresent # Overrides the image tag whose default is the chart appVersion. - tag: "" + tag: "0.2.0" envs: - name: GIN_MODE