mirror of
https://github.com/open-webui/open-webui
synced 2024-11-25 05:18:15 +00:00
28 lines
810 B
YAML
28 lines
810 B
YAML
{{- if and .Values.webui.persistence.enabled (not .Values.webui.persistence.existingClaim) }}
|
|
apiVersion: v1
|
|
kind: PersistentVolumeClaim
|
|
metadata:
|
|
name: {{ include "open-webui.name" . }}
|
|
labels:
|
|
{{- include "open-webui.selectorLabels" . | nindent 4 }}
|
|
{{- with .Values.webui.persistence.annotations }}
|
|
annotations:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
spec:
|
|
accessModes:
|
|
{{- range .Values.webui.persistence.accessModes }}
|
|
- {{ . | quote }}
|
|
{{- end }}
|
|
resources:
|
|
requests:
|
|
storage: {{ .Values.webui.persistence.size }}
|
|
{{- if .Values.webui.persistence.storageClass }}
|
|
storageClassName: {{ .Values.webui.persistence.storageClass }}
|
|
{{- end }}
|
|
{{- with .Values.webui.persistence.selector }}
|
|
selector:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
{{- end }}
|