From 2e4e033c36554fe500224414bba734e63ce8920c Mon Sep 17 00:00:00 2001 From: Remy Moll Date: Fri, 22 Dec 2023 00:00:30 +0100 Subject: [PATCH] local postgres --- apps/immich/kustomization.yaml | 1 + apps/immich/postgres.yaml | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 apps/immich/postgres.yaml diff --git a/apps/immich/kustomization.yaml b/apps/immich/kustomization.yaml index 1a74730..eb1f15e 100644 --- a/apps/immich/kustomization.yaml +++ b/apps/immich/kustomization.yaml @@ -4,6 +4,7 @@ resources: - namespace.yaml - ingress.yaml - pvc.yaml +- postgres.yaml - postgres.sealedsecret.yaml namespace: immich diff --git a/apps/immich/postgres.yaml b/apps/immich/postgres.yaml new file mode 100644 index 0000000..63ce635 --- /dev/null +++ b/apps/immich/postgres.yaml @@ -0,0 +1,21 @@ + +apiVersion: postgresql.cnpg.io/v1 +kind: Cluster +metadata: + name: immich-postgres +spec: + instances: 1 + imageName: ghcr.io/cloudnative-pg/postgresql:15 + + bootstrap: + initdb: + owner: immich + database: immich + secret: + name: postgres-password + + + storage: + size: 1Gi + storageClass: nfs-client +