add app postgresql

This commit is contained in:
2024-07-18 17:58:48 +10:00
parent 3dc6b93050
commit 4655c3412a
4 changed files with 11 additions and 47 deletions

View File

@@ -1,29 +1,11 @@
auth:
postgresPassword:
valueFrom:
secretKeyRef:
name: postgresql-secrets
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
username: edward
database: edwarddb
existingSecret: "postgresql-secrets"
secretKeys:
adminPasswordKey: postgres_password
userPasswordKey: password
replicationPasswordKey: replication_password
architecture: "replication"
replication:
synchronousCommit: "on"
@@ -44,14 +26,6 @@ primary:
selector:
matchLabels:
name: postgresql-primary-pvc
extraVolumes:
- name: "postgresql-secrets"
secret:
secretName: postgresql-secrets
extraVolumeMounts:
- name: "postgresql-secrets"
mountPath: "/secrets/postgresql"
readOnly: true
readReplicas:
name: "replica"
podSecurityContext:
@@ -69,12 +43,4 @@ readReplicas:
existingClaim: postgresql-replica-pvc
selector:
matchLabels:
name: postgresql-replica-pvc
extraVolumes:
- name: "postgresql-secrets"
secret:
secretName: postgresql-secrets
extraVolumeMounts:
- name: "postgresql-secrets"
mountPath: "/secrets/postgresql"
readOnly: true
name: postgresql-replica-pvc