Fix ollama deployment
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Tyler Perkins 2024-05-10 21:48:03 -04:00
parent 66b8e61f40
commit 2136b0db12
Signed by: tyler
GPG Key ID: 03B27509E17EFDC8

View File

@ -1,7 +1,7 @@
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: ollama-deployment name: ollama
namespace: ollama-ns namespace: ollama-ns
spec: spec:
replicas: 1 replicas: 1
@ -26,10 +26,10 @@ spec:
- containerPort: 11434 - containerPort: 11434
resources: resources:
limits: limits:
nvidia.com/gpu: 2 nvidia.com/gpu: 3
volumeMounts: volumeMounts:
- name: ollama-volume - name: ollama-volume
mountPath: "/my-models" mountPath: "/root/.ollama"
volumes: volumes:
- name: ollama-volume - name: ollama-volume
persistentVolumeClaim: persistentVolumeClaim: