Merge pull request #552 from 3dwardch3ng/infra/postgresql
add infra app postgresql
This commit is contained in:
12
infrastructures/postgresql/env/k3s-cluster/config.json
vendored
Normal file
12
infrastructures/postgresql/env/k3s-cluster/config.json
vendored
Normal 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
|
||||
}
|
||||
8
infrastructures/postgresql/env/k3s-cluster/kustomization.yaml
vendored
Normal file
8
infrastructures/postgresql/env/k3s-cluster/kustomization.yaml
vendored
Normal 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
|
||||
46
infrastructures/postgresql/env/k3s-cluster/values.yaml
vendored
Normal file
46
infrastructures/postgresql/env/k3s-cluster/values.yaml
vendored
Normal 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
|
||||
Reference in New Issue
Block a user