From ace190947753c34d64dfb622a6c00945cd7c1524 Mon Sep 17 00:00:00 2001 From: Paul Payne Date: Tue, 27 May 2025 17:20:20 -0700 Subject: [PATCH] Update PostgreSQL configuration: set image and add storage replacement in kustomization --- apps/postgres/config/example.env | 3 ++- apps/postgres/deployment.yaml | 2 +- apps/postgres/kustomization.yaml | 10 ++++++++++ 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/apps/postgres/config/example.env b/apps/postgres/config/example.env index 3f0d5d1..ab16d07 100644 --- a/apps/postgres/config/example.env +++ b/apps/postgres/config/example.env @@ -1,4 +1,5 @@ POSTGRES_DB=postgres POSTGRES_USER=postgres POSTGRES_PASSWORD=OhPostgres! -POSTGRES_STORAGE=10Gi \ No newline at end of file +POSTGRES_STORAGE=10Gi +POSTGRES_IMAGE=pgvector/pgvector:pg15 \ No newline at end of file diff --git a/apps/postgres/deployment.yaml b/apps/postgres/deployment.yaml index 277234d..d41322b 100644 --- a/apps/postgres/deployment.yaml +++ b/apps/postgres/deployment.yaml @@ -15,7 +15,7 @@ spec: spec: containers: - name: postgres - image: postgres:15 + image: pgvector/pgvector:pg15 ports: - containerPort: 5432 envFrom: diff --git a/apps/postgres/kustomization.yaml b/apps/postgres/kustomization.yaml index b8ffe97..c155b64 100644 --- a/apps/postgres/kustomization.yaml +++ b/apps/postgres/kustomization.yaml @@ -32,3 +32,13 @@ replacements: select: kind: PersistentVolumeClaim name: postgresql-pvc + - source: + kind: ConfigMap + name: config + fieldPath: data.POSTGRES_IMAGE + targets: + - fieldPaths: + - spec.template.spec.containers.0.image + select: + kind: Deployment + name: postgres-deployment