Update PostgreSQL configuration: set image and add storage replacement in kustomization
This commit is contained in:
@@ -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
|
@@ -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:
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user