Refactor PostgreSQL configuration and deployment to use new patterns.
This commit is contained in:
@@ -8,30 +8,7 @@ labels:
|
||||
managedBy: kustomize
|
||||
partOf: wild-cloud
|
||||
resources:
|
||||
- config
|
||||
- deployment.yaml
|
||||
- namespace.yaml
|
||||
- service.yaml
|
||||
- pvc.yaml
|
||||
|
||||
replacements:
|
||||
- source:
|
||||
kind: ConfigMap
|
||||
name: config
|
||||
fieldPath: data.POSTGRES_STORAGE
|
||||
targets:
|
||||
- fieldPaths:
|
||||
- spec.resources.requests.storage
|
||||
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
|
||||
|
Reference in New Issue
Block a user