@@ -63,18 +63,37 @@ invidious:
63
63
# Usa un tag completo, non solo "17"
64
64
tag : " 17.6.0"
65
65
auth :
66
+ # Username DEVE corrispondere a quello in Vault
66
67
username : kemal
67
68
database : invidious
68
- # IMPORTANTE: Il secret DEVE essere specificato qui
69
+ # Riferimento al secret esistente
69
70
existingSecret : " invidious-secrets"
70
- # Le chiavi nel secret che PostgreSQL cercherà
71
+ # Mapping delle chiavi nel secret
71
72
secretKeys :
72
- # Queste sono le chiavi CORRETTE per il chart Bitnami
73
- adminPasswordKey : " postgresql-password"
74
- userPasswordKey : " postgresql-password"
75
- replicationPasswordKey : " postgresql-password"
73
+ # IMPORTANTE: PostgreSQL Bitnami si aspetta questa struttura
74
+ adminPasswordKey : " postgresql-postgres-password" # Password per utente 'postgres'
75
+ userPasswordKey : " postgresql-password" # Password per utente 'kemal'
76
76
77
- # Configurazione persistence (struttura corretta per Bitnami chart v16.x)
77
+ primary :
78
+ persistence :
79
+ enabled : true
80
+ size : 10Gi
81
+ storageClass : nfs-csi
82
+
83
+ # Aggiungi init container per aspettare il secret
84
+ initContainers :
85
+ - name : wait-for-secret
86
+ image : bitnami/kubectl:latest
87
+ command :
88
+ - sh
89
+ - -c
90
+ - |
91
+ until kubectl get secret invidious-secrets -n apps; do
92
+ echo "Waiting for secret invidious-secrets..."
93
+ sleep 5
94
+ done
95
+ echo "Secret found!"
96
+
78
97
persistence :
79
98
enabled : true
80
99
size : 10Gi
@@ -132,6 +151,7 @@ invidious:
132
151
config :
133
152
db :
134
153
user : kemal
154
+ password : " " # Verrà preso da existingSecret
135
155
host : " " # Verrà auto-popolato dal chart
136
156
port : 5432
137
157
dbname : invidious
@@ -147,6 +167,10 @@ invidious:
147
167
# Companion integration
148
168
invidious_companion :
149
169
- private_url : " " # Verrà auto-popolato dal chart
170
+
171
+ # Questi verranno presi da existingSecret
172
+ invidious_companion_key : " "
173
+ hmac_key : " "
150
174
151
175
# IMPORTANTE: Riferimento al secret esterno per le chiavi sensibili
152
176
existingSecret : " invidious-secrets"
0 commit comments