diff --git a/cluster/apps/immich/db/ObjectStore.yaml b/cluster/apps/immich/db/ObjectStore.yaml index e69de29..84fa84a 100644 --- a/cluster/apps/immich/db/ObjectStore.yaml +++ b/cluster/apps/immich/db/ObjectStore.yaml @@ -0,0 +1,36 @@ +--- +apiVersion: barmancloud.cnpg.io/v1 +kind: ObjectStore +metadata: + name: immich-db + namespace: immich + labels: + app: immich-db +spec: + configuration: + destinationPath: 's3://k8s-db-postgres/immich/2025-10' + endpointURL: 'https://s3.example.org' + s3Credentials: + accessKeyId: + name: global-s3-k8s-db-postgres + key: AWS_ACCESS_KEY + secretAccessKey: + name: global-s3-k8s-db-postgres + key: AWS_SECRET_KEY + region: + name: global-s3-k8s-db-postgres + key: AWS_REGION + data: + compression: bzip2 + wal: + compression: bzip2 + + retentionPolicy: '7d' + + instanceSidecarConfiguration: + resources: + limits: + memory: 1Gi + requests: + cpu: 100m + memory: 200Mi