2023-12-24 16:34:33 +01:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
2024-02-17 21:18:21 +01:00
|
|
|
name: open-webui-deployment
|
2023-12-24 16:34:33 +01:00
|
|
|
namespace: {{ .Values.namespace }}
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
2024-02-17 21:18:21 +01:00
|
|
|
app: open-webui
|
2023-12-24 16:34:33 +01:00
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
2024-02-17 21:18:21 +01:00
|
|
|
app: open-webui
|
2023-12-24 16:34:33 +01:00
|
|
|
spec:
|
|
|
|
containers:
|
2024-02-17 21:18:21 +01:00
|
|
|
- name: open-webui
|
2023-12-28 16:28:09 +01:00
|
|
|
image: {{ .Values.webui.image }}
|
2023-12-24 16:34:33 +01:00
|
|
|
ports:
|
|
|
|
- containerPort: 8080
|
2023-12-28 16:28:09 +01:00
|
|
|
{{- if .Values.webui.resources }}
|
|
|
|
resources: {{- toYaml .Values.webui.resources | nindent 10 }}
|
|
|
|
{{- end }}
|
|
|
|
volumeMounts:
|
|
|
|
- name: webui-volume
|
|
|
|
mountPath: /app/backend/data
|
2023-12-24 16:34:33 +01:00
|
|
|
env:
|
|
|
|
- name: OLLAMA_API_BASE_URL
|
|
|
|
value: "http://ollama-service.{{ .Values.namespace }}.svc.cluster.local:{{ .Values.ollama.servicePort }}/api"
|
2023-12-28 16:28:09 +01:00
|
|
|
tty: true
|
|
|
|
{{- with .Values.webui.nodeSelector }}
|
|
|
|
nodeSelector:
|
|
|
|
{{- toYaml . | nindent 8 }}
|
|
|
|
{{- end }}
|
|
|
|
volumes:
|
|
|
|
- name: webui-volume
|
|
|
|
persistentVolumeClaim:
|
2024-02-17 21:18:21 +01:00
|
|
|
claimName: open-webui-pvc
|