Skip to content

Commit f7e34c4

Browse files
Testing a PG db for immich using components
1 parent 7108f72 commit f7e34c4

File tree

2 files changed

+22
-6
lines changed

2 files changed

+22
-6
lines changed

kubernetes/apps/default/immich/ks.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ metadata:
55
name: &app immich
66
spec:
77
targetNamespace: default
8+
components:
9+
- ../../../../components/postgres
810
dependsOn:
911
- name: crunchy-postgres-cluster-vector
1012
namespace: database
@@ -28,3 +30,23 @@ spec:
2830
substitute:
2931
APP: *app
3032
GATUS_SUBDOMAIN: photos
33+
patches:
34+
- target:
35+
kind: PostgresCluster
36+
patch: |-
37+
apiVersion: postgres-operator.crunchydata.com/v1beta1
38+
kind: PostgresCluster
39+
metadata:
40+
name: immich
41+
spec:
42+
postgresVersion: 16
43+
image: ghcr.io/budimanjojo/cdpgvecto.rs:16@sha256:81732e18125371bbbf965caa5cb367b45f43f6f8c60102675a821981987007b7
44+
patroni:
45+
dynamicConfiguration:
46+
synchronous_mode: true
47+
postgresql:
48+
synchronous_commit: "on"
49+
parameters:
50+
max_connections: 500
51+
shared_preload_libraries: "vectors.so"
52+
search_path: '"$user", public, vectors"'

kubernetes/apps/observability/gatus/ks.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,3 @@ spec:
3333
substitute:
3434
APP: *app
3535
GATUS_SUBDOMAIN: status
36-
patches:
37-
- target:
38-
kind: PostgresCluster
39-
patch: |-
40-
- op: remove
41-
path: /spec/dataSource

0 commit comments

Comments
 (0)