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
|
image: quay.io/invidious/invidious:master
|
||||||
env:
|
env:
|
||||||
- name: INVIDIOUS_CONFIG
|
- name: INVIDIOUS_CONFIG
|
||||||
value: |
|
valueFrom:
|
||||||
db:
|
configMapKeyRef:
|
||||||
dbname: "${POSTGRES_DB}"
|
name: invidious-config
|
||||||
user: "${POSTGRES_USER}"
|
key: config.yaml
|
||||||
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}"
|
|
||||||
envFrom:
|
envFrom:
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: invidious-db-secrets
|
name: invidious-db-secrets
|
||||||
|
|||||||
Reference in New Issue
Block a user