add infra postgresql
This commit is contained in:
11
infrastructures/postgresql/env/k3s-cluster/kustomization.yaml
vendored
Normal file
11
infrastructures/postgresql/env/k3s-cluster/kustomization.yaml
vendored
Normal 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
|
||||||
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user