Add local-ai container
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Tyler Perkins 2023-12-13 21:59:54 -05:00
parent ca0fb4b9c8
commit c666d1b7bf
Signed by: tyler
GPG Key ID: 03B27509E17EFDC8
3 changed files with 59 additions and 0 deletions

View File

@ -0,0 +1,34 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: local-ai
namespace: local-ai
spec:
replicas: 1
selector:
matchLabels:
app: local-ai
template:
metadata:
labels:
app: local-ai
spec:
containers:
- name: local-ai
image: quay.io/go-skynet/local-ai:v2.0.0
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

View File

@ -0,0 +1,12 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: local-ai-models-pvc
namespace: local-ai-ns
spec:
accessModes:
- ReadWriteOnce
storageClassName: longhorn
resources:
requests:
storage: 80Gi

View File

@ -0,0 +1,13 @@
apiVersion: v1
kind: Service
metadata:
name: local-ai-service
namespace: local-ai-ns
spec:
selector:
app: local-ai
type: LoadBalancer
ports:
- protocol: TCP
port: 80
targetPort: 8080