2023-12-24 15:34:33 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
2024-02-17 20:54:12 +00:00
|
|
|
name: open-webui-deployment
|
2024-02-17 13:18:45 +00:00
|
|
|
namespace: open-webui
|
2023-12-24 15:34:33 +00:00
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
2024-02-17 20:54:12 +00:00
|
|
|
app: open-webui
|
2023-12-24 15:34:33 +00:00
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
2024-02-17 20:54:12 +00:00
|
|
|
app: open-webui
|
2023-12-24 15:34:33 +00:00
|
|
|
spec:
|
|
|
|
containers:
|
2024-02-17 20:54:12 +00:00
|
|
|
- name: open-webui
|
2024-02-17 20:18:21 +00:00
|
|
|
image: ghcr.io/open-webui/open-webui:main
|
2023-12-24 15:34:33 +00:00
|
|
|
ports:
|
|
|
|
- containerPort: 8080
|
|
|
|
resources:
|
2024-02-17 16:20:53 +00:00
|
|
|
requests:
|
2023-12-24 15:34:33 +00:00
|
|
|
cpu: "500m"
|
|
|
|
memory: "500Mi"
|
2024-02-17 16:20:53 +00:00
|
|
|
limits:
|
|
|
|
cpu: "1000m"
|
|
|
|
memory: "1Gi"
|
2023-12-24 15:34:33 +00:00
|
|
|
env:
|
2024-03-06 19:44:00 +00:00
|
|
|
- name: OLLAMA_BASE_URL
|
|
|
|
value: "http://ollama-service.open-webui.svc.cluster.local:11434"
|
2024-02-16 18:36:38 +00:00
|
|
|
tty: true
|
|
|
|
volumeMounts:
|
|
|
|
- name: webui-volume
|
|
|
|
mountPath: /app/backend/data
|
|
|
|
volumes:
|
|
|
|
- name: webui-volume
|
|
|
|
persistentVolumeClaim:
|
2024-03-24 07:18:28 +00:00
|
|
|
claimName: open-webui-pvc
|