diff --git a/charts/ragflow/templates/ragflow.yaml b/charts/ragflow/templates/ragflow.yaml index 57a5d22..0e54842 100644 --- a/charts/ragflow/templates/ragflow.yaml +++ b/charts/ragflow/templates/ragflow.yaml @@ -53,6 +53,9 @@ spec: subPath: llm_factories.json name: service-conf-volume {{- end }} + {{- with .Values.ragflow.volumeMounts }} + {{- toYaml . | nindent 10 }} + {{- end }} envFrom: - secretRef: name: {{ include "ragflow.fullname" . }}-env-config @@ -67,6 +70,9 @@ spec: - name: service-conf-volume configMap: name: ragflow-service-config + {{- with .Values.ragflow.volumes }} + {{- toYaml . | nindent 8 }} + {{- end }} --- apiVersion: v1 kind: Service diff --git a/charts/ragflow/values.yaml b/charts/ragflow/values.yaml index 2cfcdb4..8f9eade 100644 --- a/charts/ragflow/values.yaml +++ b/charts/ragflow/values.yaml @@ -98,6 +98,33 @@ ragflow: # model_type: chat # is_tools: false + # Additional volumes to be mounted in the ragflow container + # Example: + # volumes: + # - name: my-custom-volume + # configMap: + # name: my-config + # - name: my-secret-volume + # secret: + # secretName: my-secret + # - name: my-pvc-volume + # persistentVolumeClaim: + # claimName: my-pvc + volumes: [] + + # Additional volume mounts for the ragflow container + # Example: + # volumeMounts: + # - name: my-custom-volume + # mountPath: /app/config + # readOnly: true + # - name: my-secret-volume + # mountPath: /app/secrets + # readOnly: true + # - name: my-pvc-volume + # mountPath: /app/data + volumeMounts: [] + # Kubernetes configuration deployment: strategy: