31 lines
760 B
YAML
31 lines
760 B
YAML
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: open-webui-deployment
|
||
|
namespace: open-webui-ns
|
||
|
spec:
|
||
|
replicas: 1
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: open-webui
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: open-webui
|
||
|
spec:
|
||
|
containers:
|
||
|
- name: open-webui
|
||
|
image: ghcr.io/open-webui/open-webui:main
|
||
|
ports:
|
||
|
- containerPort: 8080
|
||
|
env:
|
||
|
- name: OLLAMA_BASE_URL
|
||
|
value: "http://ollama-service.ollama-ns.svc.cluster.local:11434" # Assuming the internal service is named 'open-webui-service'
|
||
|
volumeMounts:
|
||
|
- name: config
|
||
|
mountPath: /app/backend/data
|
||
|
volumes:
|
||
|
- name: config
|
||
|
persistentVolumeClaim:
|
||
|
claimName: open-webui-pvc
|