2023-12-24 16:34:33 +01:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: StatefulSet
|
|
|
|
metadata:
|
|
|
|
name: ollama
|
2024-02-17 14:18:45 +01:00
|
|
|
namespace: open-webui
|
2023-12-24 16:34:33 +01:00
|
|
|
spec:
|
|
|
|
serviceName: "ollama"
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: ollama
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: ollama
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: ollama
|
|
|
|
image: ollama/ollama:latest
|
|
|
|
ports:
|
|
|
|
- containerPort: 11434
|
|
|
|
resources:
|
2024-02-17 17:20:53 +01:00
|
|
|
requests:
|
2023-12-24 16:34:33 +01:00
|
|
|
cpu: "2000m"
|
|
|
|
memory: "2Gi"
|
2024-02-17 17:20:53 +01:00
|
|
|
limits:
|
|
|
|
cpu: "4000m"
|
|
|
|
memory: "4Gi"
|
|
|
|
nvidia.com/gpu: "0"
|
2023-12-24 16:34:33 +01:00
|
|
|
volumeMounts:
|
|
|
|
- name: ollama-volume
|
|
|
|
mountPath: /root/.ollama
|
|
|
|
tty: true
|
|
|
|
volumeClaimTemplates:
|
|
|
|
- metadata:
|
|
|
|
name: ollama-volume
|
|
|
|
spec:
|
|
|
|
accessModes: [ "ReadWriteOnce" ]
|
|
|
|
resources:
|
|
|
|
requests:
|
2024-02-17 17:20:53 +01:00
|
|
|
storage: 30Gi
|