mirror of
https://github.com/auricom/home-cluster.git
synced 2025-09-17 18:24:14 +02:00
36 lines
1.1 KiB
YAML
36 lines
1.1 KiB
YAML
---
|
|
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/external-secrets.io/externalsecret_v1beta1.json
|
|
apiVersion: external-secrets.io/v1beta1
|
|
kind: ExternalSecret
|
|
metadata:
|
|
name: invidious
|
|
namespace: default
|
|
spec:
|
|
secretStoreRef:
|
|
kind: ClusterSecretStore
|
|
name: onepassword-connect
|
|
target:
|
|
name: invidious-secret
|
|
template:
|
|
engineVersion: v2
|
|
data:
|
|
# App
|
|
INVIDIOUS_CONFIG: |
|
|
database_url: postgres://{{ .POSTGRES_USER }}:{{ .POSTGRES_PASS }}@postgres16-rw.database.svc.cluster.local.:5432/invidious
|
|
check_tables: true
|
|
port: 3000
|
|
domain: invidious.${SECRET_EXTERNAL_DOMAIN}
|
|
https_only: false
|
|
hmac_key: {{ .HMAC_KEY }}
|
|
# Postgres Init
|
|
INIT_POSTGRES_DBNAME: invidious
|
|
INIT_POSTGRES_HOST: postgres16-rw.database.svc.cluster.local
|
|
INIT_POSTGRES_USER: "{{ .POSTGRES_USER }}"
|
|
INIT_POSTGRES_PASS: "{{ .POSTGRES_PASS }}"
|
|
INIT_POSTGRES_SUPER_PASS: "{{ .POSTGRES_SUPER_PASS }}"
|
|
dataFrom:
|
|
- extract:
|
|
key: cloudnative-pg
|
|
- extract:
|
|
key: invidious
|