Add local-ai container
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
ca0fb4b9c8
commit
c666d1b7bf
34
local-ai/local-ai-deployment.yml
Normal file
34
local-ai/local-ai-deployment.yml
Normal 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
|
12
local-ai/local-ai-model-pvc.yml
Normal file
12
local-ai/local-ai-model-pvc.yml
Normal 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
|
13
local-ai/local-ai-service.yml
Normal file
13
local-ai/local-ai-service.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user