add infra postgresql

This commit is contained in:
2024-07-17 12:55:32 +10:00
parent 01a78b1ae6
commit 99e405b0a5
4 changed files with 36 additions and 5 deletions

View File

@@ -0,0 +1,11 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./volume.yaml
- ./ingress.yaml
helmCharts:
- name: postgresql
repo: oci://registry-1.docker.io/bitnamicharts
version: 15.5.17
releaseName: postgresql
valuesFile: values.yaml

View File

@@ -1,9 +1,29 @@
auth: auth:
postgresPassword: ${postgres_password} postgresPassword:
username: ${username} valueFrom:
password: ${password} secretKeyRef:
database: ${database} name: postgresql-secrets
replicationPassword: ${replication_password} key: postgres_password
username:
valueFrom:
secretKeyRef:
name: postgresql-secrets
key: username
password:
valueFrom:
secretKeyRef:
name: postgresql-secrets
key: password
database:
valueFrom:
secretKeyRef:
name: postgresql-secrets
key: database
replicationPassword:
valueFrom:
secretKeyRef:
name: postgresql-secrets
key: replication_password
architecture: "replication" architecture: "replication"
replication: replication:
synchronousCommit: "on" synchronousCommit: "on"