42 lines
741 B
YAML
42 lines
741 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: localai
|
|
labels:
|
|
app: localai
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: localai
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: localai
|
|
spec:
|
|
containers:
|
|
- name: localai
|
|
image: quay.io/go-skynet/local-ai:v2.22.1-ffmpeg
|
|
ports:
|
|
- containerPort: 8080
|
|
volumeMounts:
|
|
- mountPath: /models
|
|
name: model-volume
|
|
volumes:
|
|
- name: model-volume
|
|
persistentVolumeClaim:
|
|
claimName: localai-pvc
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: localai-service
|
|
spec:
|
|
type: LoadBalancer
|
|
selector:
|
|
app: localai
|
|
ports:
|
|
- protocol: TCP
|
|
port: 80
|
|
targetPort: 8080
|