This commit is contained in:
parent
21dbec6c00
commit
a96ffc3d41
75
localai/localai-deployment.yaml
Normal file
75
localai/localai-deployment.yaml
Normal file
@ -0,0 +1,75 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: localai
|
||||
namespace: localai-ns
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: localai
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: localai
|
||||
spec:
|
||||
runtimeClassName: nvidia
|
||||
containers:
|
||||
- name: localai
|
||||
image: quay.io/go-skynet/local-ai:v2.11.0-cublas-cuda12-ffmpeg
|
||||
args: ["dolphin-2.7-mixtral-8x7b-GGUF"]
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
#env:
|
||||
resources:
|
||||
limits:
|
||||
nvidia.com/gpu: 2
|
||||
volumeMounts:
|
||||
- mountPath: "/build/models"
|
||||
name: models
|
||||
- name: filebrowser
|
||||
image: git.clortox.com/infrastructure/filebrowser:v1.0.1
|
||||
ports:
|
||||
- containerPort: 80
|
||||
volumeMounts:
|
||||
- name: models
|
||||
mountPath: /srv
|
||||
env:
|
||||
- name: ADMIN_PASS
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: filebrowswer-secret
|
||||
key: ADMIN_PASS
|
||||
- name: DEFAULT_USERNAME
|
||||
value: "default"
|
||||
- name: DEFAULT_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: filebrowswer-secret
|
||||
key: DEFAULT_PASS
|
||||
- name: BRANDING_NAME
|
||||
value: "Model Files"
|
||||
- name: AUTH_METHOD
|
||||
value: "json"
|
||||
- name: AUTH_HEADER
|
||||
value: "X-Auth-User"
|
||||
- name: PERM_ADMIN
|
||||
value: "false"
|
||||
- name: PERM_EXECUTE
|
||||
value: "true"
|
||||
- name: PERM_CREATE
|
||||
value: "true"
|
||||
- name: PERM_RENAME
|
||||
value: "true"
|
||||
- name: PERM_MODIFY
|
||||
value: "true"
|
||||
- name: PERM_DELETE
|
||||
value: "true"
|
||||
- name: PERM_SHARE
|
||||
value: "false"
|
||||
- name: PERM_DOWNLOAD
|
||||
value: "true"
|
||||
volumes:
|
||||
- name: models
|
||||
persistentVolumeClaim:
|
||||
claimName: localai-pvc
|
11
localai/localai-pvc.yaml
Normal file
11
localai/localai-pvc.yaml
Normal file
@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: localai-pvc
|
||||
namespace: localai-ns
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
resources:
|
||||
requests:
|
||||
storage: 100Gi
|
18
localai/localai-service.yaml
Normal file
18
localai/localai-service.yaml
Normal file
@ -0,0 +1,18 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: localai
|
||||
namespace: localai-ns
|
||||
spec:
|
||||
type: LoadBalancer
|
||||
selector:
|
||||
app: localai
|
||||
ports:
|
||||
- name: localai
|
||||
port: 8080
|
||||
targetPort: 8080
|
||||
protocol: TCP
|
||||
- name: filebrowswer
|
||||
protocol: TCP
|
||||
port: 80
|
||||
targetPort: 80
|
15
localai/sealed-secret.yaml
Normal file
15
localai/sealed-secret.yaml
Normal file
@ -0,0 +1,15 @@
|
||||
apiVersion: bitnami.com/v1alpha1
|
||||
kind: SealedSecret
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
name: filebrowswer-secret
|
||||
namespace: localai-ns
|
||||
spec:
|
||||
encryptedData:
|
||||
ADMIN_PASS: AgAk9F2XnUWx2V/fJNlrGwoCNRpn9RjmKeR1Do8NMdwIWZNhRPdKXROgtdvQIhuxEMqWNmmGG//xhmb/gCkXfInh/5lnzqDZTB6JAi5VBaUfxw9LVqBY5vcyHNMXr9LQ9zhKf7lMVQct+3Z50mZqnulWElDpjjyPeeFjozI5Yp14Vvc9cDeWhNqTgv5O2Bf2syTTrqYBfvv1MiJi0pvVL4+jk7N44PpCb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DnA52mDbXmV7JdLsPMm3W87cqZa/vl57zbAOab9BoV9Y9zMVl61c/hj4VVfBDdGsy7GCgSLtFxhUllB13eac6Hi3+jD6mREgtxVm3N1Nm9EYt+HpEstoDQUpcDu979t5IcxPjzPglNwpBFegSGmR/4+Hn3rOjRcGCkDG87ZSrGkE1ljogXrWWZJQrZeQ==
|
||||
template:
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
name: filebrowswer-secret
|
||||
namespace: localai-ns
|
Loading…
Reference in New Issue
Block a user