add PersistentVolumeClaim and Service for open-webui deployment
This commit is contained in:
31
cluster/apps/open-webui/open-webui.yml
Normal file
31
cluster/apps/open-webui/open-webui.yml
Normal file
@@ -0,0 +1,31 @@
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: open-webui
|
||||
namespace: default
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: open-webui
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: open-webui
|
||||
spec:
|
||||
runtimeClassName: nvidia
|
||||
containers:
|
||||
- name: open-webui
|
||||
image: ghcr.io/open-webui/open-webui:cuda
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
env:
|
||||
- name: OLLAMA_BASE_URL
|
||||
value: "ollama:3210"
|
||||
volumeMounts:
|
||||
- name: config
|
||||
mountPath: /app/backend/data
|
||||
volumes:
|
||||
- name: config
|
||||
persistentVolumeClaim:
|
||||
claimName: longhorn-open-webui
|
||||
Reference in New Issue
Block a user