Gluttony-Cluster/ollama/ollama-deployment.yaml

28 lines
540 B
YAML
Raw Normal View History

2024-04-13 01:02:18 +00:00
apiVersion: apps/v1
kind: Deployment
metadata:
name: ollama-deployment
namespace: ollama-ns
spec:
replicas: 1
selector:
matchLabels:
app: ollama
template:
metadata:
labels:
app: ollama
spec:
containers:
- name: ollama
image: ollama/ollama
ports:
- containerPort: 11434
volumeMounts:
- name: ollama-volume
mountPath: /root/.ollama
volumes:
- name: ollama-volume
persistentVolumeClaim:
claimName: ollama-pvc