feat: create invidious-config ConfigMap and reference it in deployment
This commit is contained in:
19
cluster/apps/invidious/inv-configmap.yml
Normal file
19
cluster/apps/invidious/inv-configmap.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: invidious-config
|
||||
data:
|
||||
config.yaml: |
|
||||
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}"
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user