Skip to content

Commit bd75dba

Browse files
committed
up
1 parent 900e98d commit bd75dba

3 files changed

Lines changed: 12 additions & 5 deletions

File tree

infrastructure/database/crunchy-postgres/immich/cluster.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,7 @@ spec:
6464
databases: [ "immich" ]
6565
options: "CREATEDB CREATEROLE"
6666
password:
67-
secretKeyRef:
68-
name: immich-db-password
69-
key: password
67+
type: AlphaNumeric
7068
proxy:
7169
pgBouncer:
7270
port: 5432

my-apps/media/immich/deployment-server.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ spec:
5151
- name: DB_URL
5252
valueFrom:
5353
secretKeyRef:
54-
name: immich-db-password
54+
name: immich-pguser-immich
5555
key: uri
5656
- name: REDIS_HOSTNAME
5757
value: "immich-valkey.immich.svc.cluster.local"

my-apps/media/immich/externalsecret.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,20 @@ spec:
99
kind: ClusterSecretStore
1010
name: 1password
1111
target:
12-
name: immich-db-password
12+
name: immich-pguser-immich
1313
creationPolicy: Owner
1414
template:
15+
metadata:
16+
labels:
17+
postgres-operator.crunchydata.com/cluster: immich
18+
postgres-operator.crunchydata.com/pguser: immich
19+
postgres-operator.crunchydata.com/role: pguser
1520
data:
21+
user: "{{ .immich_db_username }}"
1622
password: "{{ .immich_db_password }}"
23+
dbname: "immich"
24+
host: "immich-pgbouncer.immich.svc.cluster.local"
25+
port: "5432"
1726
uri: "postgresql://{{ .immich_db_username }}:{{ .immich_db_password }}@immich-pgbouncer.immich.svc.cluster.local:5432/immich?sslmode=require"
1827
dataFrom:
1928
- extract:

0 commit comments

Comments
 (0)