Update PostgreSQL configuration: set image and add storage replacement in kustomization

This commit is contained in:
2025-05-27 17:20:20 -07:00
parent ead32d09a0
commit ace1909477
3 changed files with 13 additions and 2 deletions

View File

@@ -2,3 +2,4 @@ POSTGRES_DB=postgres
POSTGRES_USER=postgres POSTGRES_USER=postgres
POSTGRES_PASSWORD=OhPostgres! POSTGRES_PASSWORD=OhPostgres!
POSTGRES_STORAGE=10Gi POSTGRES_STORAGE=10Gi
POSTGRES_IMAGE=pgvector/pgvector:pg15

View File

@@ -15,7 +15,7 @@ spec:
spec: spec:
containers: containers:
- name: postgres - name: postgres
image: postgres:15 image: pgvector/pgvector:pg15
ports: ports:
- containerPort: 5432 - containerPort: 5432
envFrom: envFrom:

View File

@@ -32,3 +32,13 @@ replacements:
select: select:
kind: PersistentVolumeClaim kind: PersistentVolumeClaim
name: postgresql-pvc 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