local postgres

This commit is contained in:
Remy Moll 2023-12-22 00:00:30 +01:00
parent 285a7541ca
commit 2e4e033c36
2 changed files with 22 additions and 0 deletions

View File

@ -4,6 +4,7 @@ resources:
- namespace.yaml - namespace.yaml
- ingress.yaml - ingress.yaml
- pvc.yaml - pvc.yaml
- postgres.yaml
- postgres.sealedsecret.yaml - postgres.sealedsecret.yaml
namespace: immich namespace: immich

21
apps/immich/postgres.yaml Normal file
View File

@ -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