mirror of
https://github.com/open-webui/open-webui
synced 2024-11-29 23:41:50 +00:00
37 lines
738 B
YAML
37 lines
738 B
YAML
|
apiVersion: apps/v1
|
||
|
kind: StatefulSet
|
||
|
metadata:
|
||
|
name: ollama
|
||
|
namespace: ollama-namespace
|
||
|
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:
|
||
|
limits:
|
||
|
cpu: "2000m"
|
||
|
memory: "2Gi"
|
||
|
volumeMounts:
|
||
|
- name: ollama-volume
|
||
|
mountPath: /root/.ollama
|
||
|
tty: true
|
||
|
volumeClaimTemplates:
|
||
|
- metadata:
|
||
|
name: ollama-volume
|
||
|
spec:
|
||
|
accessModes: [ "ReadWriteOnce" ]
|
||
|
resources:
|
||
|
requests:
|
||
|
storage: 1Gi
|