feat: create invidious-config ConfigMap and reference it in deployment

This commit is contained in:
2025-04-15 13:48:58 +05:30
parent b9fcd07f03
commit 15093ccfe3
2 changed files with 23 additions and 13 deletions

View File

@@ -19,19 +19,10 @@ spec:
image: quay.io/invidious/invidious:master
env:
- name: INVIDIOUS_CONFIG
value: |
db:
dbname: "${POSTGRES_DB}"
user: "${POSTGRES_USER}"
password: "${POSTGRES_PASSWORD}"
host: "invidious-db"
port: 5432
check_tables: true
invidious_companion:
- private_url: "http://companion:8282"
public_url: "http://localhost:8282"
invidious_companion_key: "${COMPANION_KEY}"
hmac_key: "${HMAC_KEY}"
valueFrom:
configMapKeyRef:
name: invidious-config
key: config.yaml
envFrom:
- secretRef:
name: invidious-db-secrets