Merge pull request #220 from 3dwardch3ng/app/postgresql

fix pvc and fix values
This commit is contained in:
2024-06-19 02:13:52 +10:00
committed by GitHub
2 changed files with 53 additions and 39 deletions

View File

@@ -6,14 +6,20 @@ metadata:
labels:
type: local
spec:
storageClassName: manual
storageClassName: local-path
volumeMode: Filesystem
capacity:
storage: 8Gi
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Retain
hostPath:
local:
path: "/mnt/nfs/AppData/postgresql/primary"
claimRef:
apiVersion: v1
kind: PersistentVolumeClaim
name: postgresql-primary-pvc
namespace: postgresql
---
apiVersion: v1
kind: PersistentVolumeClaim
@@ -23,7 +29,8 @@ metadata:
labels:
name: postgresql-primary-pvc
spec:
storageClassName: manual
storageClassName: local-path
volumeMode: Filesystem
accessModes:
- ReadWriteOnce
resources:
@@ -38,14 +45,20 @@ metadata:
labels:
type: local
spec:
storageClassName: manual
storageClassName: local-path
volumeMode: Filesystem
capacity:
storage: 8Gi
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Retain
hostPath:
local:
path: "/mnt/nfs/AppData/postgresql/replica"
claimRef:
apiVersion: v1
kind: PersistentVolumeClaim
name: postgresql-replica-pvc
namespace: postgresql
---
apiVersion: v1
kind: PersistentVolumeClaim
@@ -55,7 +68,8 @@ metadata:
labels:
name: postgresql-replica-pvc
spec:
storageClassName: manual
storageClassName: local-path
volumeMode: Filesystem
accessModes:
- ReadWriteOnce
resources:

View File

@@ -41,42 +41,42 @@ spec:
remediation:
retries: 3
values:
postgresql:
global:
auth:
postgresPassword: ${postgresql_password}
username: ${username}
password: ${password}
database: ${database}
replicationPassword: ${replication_password}
architecture: "replication"
replication:
synchronousCommit: "on"
numSynchronousReplicas: 1
applicationName: "postgresqlReplication"
primary:
podSecurityContext:
fsGroup: 1000
containerSecurityContext:
runAsUser: 1000
runAsGroup: 1000
podLabels:
name: "postgresql-primary"
persistence:
existingClaim: postgresql-primary-pvc
selector:
matchLabels:
name: postgresql-primary-pvc
readReplicas:
name: "replica"
podSecurityContext:
fsGroup: 1000
containerSecurityContext:
runAsUser: 1000
runAsGroup: 1000
podLabels:
name: "postgresql-replica"
persistence:
existingClaim: postgresql-replica-pvc
selector:
matchLabels:
name: postgresql-replica-pvc
architecture: "replication"
replication:
synchronousCommit: "on"
numSynchronousReplicas: 1
applicationName: "postgresqlReplication"
primary:
podSecurityContext:
fsGroup: 1000
containerSecurityContext:
runAsUser: 1000
runAsGroup: 1000
podLabels:
name: "postgresql-primary"
persistence:
existingClaim: postgresql-primary-pvc
selector:
matchLabels:
name: postgresql-primary-pvc
readReplicas:
name: "replica"
podSecurityContext:
fsGroup: 1000
containerSecurityContext:
runAsUser: 1000
runAsGroup: 1000
podLabels:
name: "postgresql-replica"
persistence:
existingClaim: postgresql-replica-pvc
selector:
matchLabels:
name: postgresql-replica-pvc