feat(localai): envFromSecret

This commit is contained in:
nold 2024-06-13 20:42:37 +02:00
parent 29283793eb
commit 5b3d2b8669
2 changed files with 14 additions and 1 deletions

View file

@ -8,7 +8,11 @@ apps:
# targetRevision: 3.1.0 # targetRevision: 3.1.0
repoURL: https://github.com/nold360/localai-charts.git repoURL: https://github.com/nold360/localai-charts.git
path: charts/local-ai path: charts/local-ai
targetRevision: feat/runtimeclass targetRevision: feat/envsecret
secrets:
- name: localai
keys:
- hf-token
- name: anythingllm - name: anythingllm
repo: bjw-s repo: bjw-s
@ -48,6 +52,7 @@ apps:
- ombi-api-key - ombi-api-key
- prompt-template - prompt-template
- instruct-template - instruct-template
- OPENWEATHERMAP_API_KEY
ignoreDiff: ignoreDiff:
- group: apps - group: apps
kind: Deployment kind: Deployment

View file

@ -56,6 +56,14 @@ deployment:
# UPLOAD_LIMIT # UPLOAD_LIMIT
# HUGGINGFACEHUB_API_TOKEN=Token here # HUGGINGFACEHUB_API_TOKEN=Token here
# Inject Secrets into Environment:
secretEnv:
- name: HF_TOKEN
valueFrom:
secretKeyRef:
name: localai
key: hf-token
modelsPath: "/models" modelsPath: "/models"
download_model: download_model: