Add localai
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Tyler Perkins 2024-05-05 13:50:35 -04:00
parent 7248edeeff
commit 93e63b3429
Signed by: tyler
GPG Key ID: 03B27509E17EFDC8
3 changed files with 62 additions and 0 deletions

View File

@ -0,0 +1,37 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: local-ai
namespace: local-ai-ns
labels:
app: local-ai
spec:
selector:
matchLabels:
app: local-ai
replicas: 1
template:
metadata:
labels:
app: local-ai
name: local-ai
spec:
containers:
- args:
- dolphin-2.5-mixtral-8x7b
env:
- name: DEBUG
value: "true"
name: local-ai
image: quay.io/go-skynet/local-ai:master-ffmpeg-core
imagePullPolicy: IfNotPresent
resources:
limits:
nvidia.com/gpu: 2
volumeMounts:
- name: models-volume
mountPath: /build/models
volumes:
- name: models-volume
persistentVolumeClaim:
claimName: models-pvc

12
localai/local-ai-pvc.yaml Normal file
View File

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

View File

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