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

View file

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