open-webui/kubernetes/manifest/base/webui-deployment.yaml

38 lines
901 B
YAML
Raw Permalink Normal View History

apiVersion: apps/v1
kind: Deployment
metadata:
2024-02-17 21:54:12 +01:00
name: open-webui-deployment
2024-02-17 14:18:45 +01:00
namespace: open-webui
spec:
replicas: 1
selector:
matchLabels:
2024-02-17 21:54:12 +01:00
app: open-webui
template:
metadata:
labels:
2024-02-17 21:54:12 +01:00
app: open-webui
spec:
containers:
2024-02-17 21:54:12 +01:00
- name: open-webui
2024-02-17 21:18:21 +01:00
image: ghcr.io/open-webui/open-webui:main
ports:
- containerPort: 8080
resources:
2024-02-17 17:20:53 +01:00
requests:
cpu: "500m"
memory: "500Mi"
2024-02-17 17:20:53 +01:00
limits:
cpu: "1000m"
memory: "1Gi"
env:
- name: OLLAMA_API_BASE_URL
2024-02-17 14:18:45 +01:00
value: "http://ollama-service.open-webui.svc.cluster.local:11434/api"
tty: true
volumeMounts:
- name: webui-volume
mountPath: /app/backend/data
volumes:
- name: webui-volume
persistentVolumeClaim:
claimName: ollama-webui-pvc