fix(litellm): restore DATABASE_URL env var lost when adopting the drifted live deployment
All checks were successful
sync-to-forgejo / sync (push) Successful in 14s

kubectl apply replaced the live pod's env list wholesale with what was
in this file (which never had DATABASE_URL, despite the
litellm-db-credentials secret already existing) — litellm's proxy
requires DB connectivity to fully start regardless of config.yaml
content, so this caused an immediate crash loop. Restored it.
This commit is contained in:
sync-test 2026-07-21 06:40:18 +05:30
parent 4ea0e2ae43
commit 2c34d78534

View file

@ -42,6 +42,19 @@ spec:
key: LITELLM_MASTER_KEY
- name: LITELLM_LOG_LEVEL
value: "DEBUG"
# Present on the live (drifted) deployment but missing from this
# file — LiteLLM's proxy tries to reach Postgres for spend
# tracking/virtual-key storage regardless of whether
# general_settings.database_url is set in config.yaml, and
# fails startup entirely if DATABASE_URL is unset (discovered
# when adopting this file caused a crash loop: the litellm-db-
# credentials secret already existed, this file just never
# referenced it).
- name: DATABASE_URL
valueFrom:
secretKeyRef:
name: litellm-db-credentials
key: DATABASE_URL
volumeMounts:
- name: config
mountPath: /app/config.yaml