Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: a-mcf/k3s-gitops
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: abff1daeaae0abaf8c92c5168a1a06af83b9fbec
Choose a base ref
..
head repository: a-mcf/k3s-gitops
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: c8dbca3e7487790ecbdfd664c0894647629d8be9
Choose a head ref
Showing with 29 additions and 12 deletions.
  1. +29 −12 cluster/apps/immich/immich/database/cluster.yaml
41 changes: 29 additions & 12 deletions cluster/apps/immich/immich/database/cluster.yaml
Original file line number Diff line number Diff line change
@@ -32,7 +32,8 @@ spec:
maxParallel: 8
destinationPath: s3://cloudnative-pg-backup
endpointURL: https://s3.${SECRET_DOMAIN}
serverName: immich
#serverName: immich
serverName: immich-restore
s3Credentials:
accessKeyId:
name: cloudnative-pg-secret
@@ -42,14 +43,30 @@ spec:
key: minio-secret-access-key

bootstrap:
initdb:
dataChecksums: true
postInitApplicationSQL:
- ALTER SYSTEM SET search_path TO "$user", public, vectors;
- SET search_path TO "$user", public, vectors;
- CREATE EXTENSION IF NOT EXISTS "vectors";
- CREATE EXTENSION IF NOT EXISTS "cube";
- CREATE EXTENSION IF NOT EXISTS "earthdistance";
- ALTER SCHEMA vectors OWNER TO "app";
- GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA vectors TO "app";
- GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO "app";
# initdb:
# dataChecksums: true
# postInitApplicationSQL:
# - ALTER SYSTEM SET search_path TO "$user", public, vectors;
# - SET search_path TO "$user", public, vectors;
# - CREATE EXTENSION IF NOT EXISTS "vectors";
# - CREATE EXTENSION IF NOT EXISTS "cube";
# - CREATE EXTENSION IF NOT EXISTS "earthdistance";
# - ALTER SCHEMA vectors OWNER TO "app";
# - GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA vectors TO "app";
# - GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO "app";
recovery:
source: immich
# recoveryTarget:
# targetTime: "2024-01-23T08:00:39"
externalClusters:
- name: immich
barmanObjectStore:
destinationPath: s3://cloudnative-pg-backup
endpointURL: https://s3.${SECRET_DOMAIN}
s3Credentials:
accessKeyId:
name: cloudnative-pg-secret
key: minio-access-key-id
secretAccessKey:
name: cloudnative-pg-secret
key: minio-secret-access-key