2023-12-24 15:34:33 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
2024-02-19 20:58:25 +00:00
|
|
|
name: {{ include "open-webui.name" . }}
|
2024-02-19 21:23:36 +00:00
|
|
|
labels:
|
|
|
|
{{- include "open-webui.labels" . | nindent 4 }}
|
2023-12-24 15:34:33 +00:00
|
|
|
spec:
|
2024-02-19 21:33:22 +00:00
|
|
|
replicas: {{ .Values.webui.replicaCount }}
|
2023-12-24 15:34:33 +00:00
|
|
|
selector:
|
|
|
|
matchLabels:
|
2024-02-19 21:23:36 +00:00
|
|
|
{{- include "open-webui.selectorLabels" . | nindent 6 }}
|
2023-12-24 15:34:33 +00:00
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
2024-02-19 21:33:22 +00:00
|
|
|
{{- include "open-webui.labels" . | nindent 8 }}
|
2023-12-24 15:34:33 +00:00
|
|
|
spec:
|
|
|
|
containers:
|
2024-02-19 20:58:25 +00:00
|
|
|
- name: {{ .Chart.Name }}
|
2023-12-28 15:28:09 +00:00
|
|
|
image: {{ .Values.webui.image }}
|
2023-12-24 15:34:33 +00:00
|
|
|
ports:
|
2024-02-19 21:33:22 +00:00
|
|
|
- name: http
|
|
|
|
containerPort: {{ .Values.webui.service.containerPort }}
|
2024-02-19 21:23:36 +00:00
|
|
|
{{- with .Values.webui.resources }}
|
|
|
|
resources: {{- toYaml . | nindent 10 }}
|
2023-12-28 15:28:09 +00:00
|
|
|
{{- end }}
|
|
|
|
volumeMounts:
|
|
|
|
- name: webui-volume
|
|
|
|
mountPath: /app/backend/data
|
2023-12-24 15:34:33 +00:00
|
|
|
env:
|
|
|
|
- name: OLLAMA_API_BASE_URL
|
2024-02-19 20:58:25 +00:00
|
|
|
value: {{ printf "http://%s.%s.svc.cluster.local:%s/api" (include "ollama.name" .) (.Release.Namespace) (.Values.ollama.servicePort) | quote }}
|
2023-12-28 15:28:09 +00:00
|
|
|
tty: true
|
|
|
|
{{- with .Values.webui.nodeSelector }}
|
|
|
|
nodeSelector:
|
|
|
|
{{- toYaml . | nindent 8 }}
|
|
|
|
{{- end }}
|
|
|
|
volumes:
|
|
|
|
- name: webui-volume
|
|
|
|
persistentVolumeClaim:
|
2024-02-19 20:58:25 +00:00
|
|
|
claimName: {{ include "open-webui.name" . }}
|