Gluttony-Cluster/local-ai/local-ai-deployment.yml

35 lines
712 B
YAML
Raw Normal View History

2023-12-14 02:59:54 +00:00
apiVersion: apps/v1
kind: Deployment
metadata:
name: local-ai
2023-12-14 03:02:00 +00:00
namespace: local-ai-ns
2023-12-14 02:59:54 +00:00
spec:
replicas: 1
selector:
matchLabels:
app: local-ai
template:
metadata:
labels:
app: local-ai
spec:
containers:
- name: local-ai
2023-12-14 03:22:16 +00:00
image: quay.io/go-skynet/local-ai:latest
2023-12-14 02:59:54 +00:00
args:
- "--models-path"
- "/models"
- "--context-size"
- "700"
- "--threads"
- "4"
ports:
- containerPort: 8080
volumeMounts:
- name: models-volume
mountPath: /models
volumes:
- name: models-volume
persistentVolumeClaim:
claimName: local-ai-models-pvc