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