mirror of
https://github.com/open-webui/helm-charts
synced 2025-06-26 18:16:14 +00:00
feat(volumes): add the ability to specify volumes and mounts.
This commit is contained in:
parent
645edec699
commit
f93c4949c9
@ -47,6 +47,9 @@ spec:
|
|||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: data
|
- name: data
|
||||||
mountPath: /tmp/app-data
|
mountPath: /tmp/app-data
|
||||||
|
{{- with .Values.volumeMounts.initContainer }}
|
||||||
|
{{- toYaml . | nindent 10 }}
|
||||||
|
{{- end }}
|
||||||
enableServiceLinks: false
|
enableServiceLinks: false
|
||||||
automountServiceAccountToken: false
|
automountServiceAccountToken: false
|
||||||
{{- with .Values.podSecurityContext }}
|
{{- with .Values.podSecurityContext }}
|
||||||
@ -72,6 +75,9 @@ spec:
|
|||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: data
|
- name: data
|
||||||
mountPath: /app/backend/data
|
mountPath: /app/backend/data
|
||||||
|
{{- with .Values.volumeMounts.container }}
|
||||||
|
{{- toYaml . | nindent 10 }}
|
||||||
|
{{- end }}
|
||||||
env:
|
env:
|
||||||
{{- if or .Values.ollamaUrls .Values.ollama.enabled }}
|
{{- if or .Values.ollamaUrls .Values.ollama.enabled }}
|
||||||
- name: "OLLAMA_BASE_URLS"
|
- name: "OLLAMA_BASE_URLS"
|
||||||
@ -119,3 +125,6 @@ spec:
|
|||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: {{ include "open-webui.name" . }}
|
claimName: {{ include "open-webui.name" . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- with .Values.volumes }}
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
@ -109,6 +109,25 @@ extraEnvVars:
|
|||||||
# - name: OLLAMA_DEBUG
|
# - name: OLLAMA_DEBUG
|
||||||
# value: "1"
|
# value: "1"
|
||||||
|
|
||||||
|
# -- Configure container volume mounts
|
||||||
|
# ref: <https://kubernetes.io/docs/tasks/configure-pod-container/configure-volume-storage/>
|
||||||
|
volumeMounts:
|
||||||
|
initContainer: []
|
||||||
|
# - name: ""
|
||||||
|
# mountPath: ""
|
||||||
|
container: []
|
||||||
|
# - name: ""
|
||||||
|
# mountPath: ""
|
||||||
|
|
||||||
|
# -- Configure pod volumes
|
||||||
|
# ref: <https://kubernetes.io/docs/tasks/configure-pod-container/configure-volume-storage/>
|
||||||
|
volumes: []
|
||||||
|
# - name: ""
|
||||||
|
# configMap:
|
||||||
|
# name: ""
|
||||||
|
# - name: ""
|
||||||
|
# emptyDir: {}
|
||||||
|
|
||||||
# -- Configure pod security context
|
# -- Configure pod security context
|
||||||
# ref: <https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-containe>
|
# ref: <https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-containe>
|
||||||
podSecurityContext:
|
podSecurityContext:
|
||||||
|
Loading…
Reference in New Issue
Block a user