open-webui/kubernetes/helm/templates/webui-deployment.yaml

38 lines
1022 B
YAML
Raw Normal View History

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