Merge pull request #552 from 3dwardch3ng/infra/postgresql

add infra app postgresql
This commit is contained in:
2024-07-18 23:59:29 +10:00
committed by GitHub
3 changed files with 66 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
{
"appName": "postgresql",
"userGivenName": "postgresql",
"namespace": "postgresql",
"destNamespace": "postgresql",
"destServer": "https://kubernetes.default.svc",
"srcPath": "infrastructures/postgresql/env/k3s-cluster",
"srcRepoURL": "https://github.com/3dwardch3ng/home-cluster-ops.git",
"srcTargetRevision": "",
"labels": null,
"annotations": null
}

View File

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

View File

@@ -0,0 +1,46 @@
auth:
username: edward
database: edwarddb
existingSecret: "postgresql-secrets"
secretKeys:
adminPasswordKey: postgres_password
userPasswordKey: password
replicationPasswordKey: replication_password
architecture: "replication"
replication:
synchronousCommit: "on"
numSynchronousReplicas: 1
applicationName: "postgres_repl"
primary:
podSecurityContext:
fsGroup: 1000
containerSecurityContext:
runAsUser: 1000
runAsGroup: 1000
podLabels:
name: "postgresql-primary"
service:
type: "LoadBalancer"
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"
service:
type: "LoadBalancer"
ports:
postgresql: 5433
persistence:
existingClaim: postgresql-replica-pvc
selector:
matchLabels:
name: postgresql-replica-pvc