Skip to content

Commit

Permalink
added standby manifests
Browse files Browse the repository at this point in the history
  • Loading branch information
thedatabaseme committed Oct 7, 2023
1 parent e9c7996 commit d67da99
Show file tree
Hide file tree
Showing 2 changed files with 146 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
apiVersion: v1
data:
password: RzZ6RjQ5bWUxZnZnV0NoQ1dtaTY0aFpWczJSWEZiU1FhSWdNN3ROSWl1Uk9mMEk4aldoNmpKRmxQUThVaTFpMA==
username: ZGVtb3VzZXI=
kind: Secret
metadata:
labels:
application: spilo
cluster-name: postgres-demo-standby-cluster-source
team: postgres
name: demouser.postgres-demo-standby-cluster-source.credentials.postgresql.acid.zalan.do
namespace: postgres
type: Opaque
---
apiVersion: v1
data:
password: MDBva3lDU2x1YkZXdkQwdWgxRlJSRzU5OEg3bU1yWE11djRHc0tPTHQyb2ZOMlZ5UDNkd1pxcU9WOEk5UEtOaA==
username: cG9zdGdyZXM=
kind: Secret
metadata:
labels:
application: spilo
cluster-name: postgres-demo-standby-cluster-source
team: postgres
name: postgres.postgres-demo-standby-cluster-source.credentials.postgresql.acid.zalan.do
namespace: postgres
type: Opaque
---
apiVersion: v1
data:
password: ZGJkYlozY2diZ3pGM2lhVlBaeGhKU0d4Vm1yUVlId2ZxYXV3cmx5eUNZdnJ5dG5DeEprbVdtUkU3R0F5eWNZaw==
username: c3RhbmRieQ==
kind: Secret
metadata:
labels:
application: spilo
cluster-name: postgres-demo-standby-cluster-source
team: postgres
name: standby.postgres-demo-standby-cluster-source.credentials.postgresql.acid.zalan.do
namespace: postgres
type: Opaque
---
apiVersion: "acid.zalan.do/v1"
kind: postgresql
metadata:
name: postgres-demo-standby-cluster-source
namespace: postgres
spec:
teamId: "postgres"
volume:
size: 2Gi
numberOfInstances: 2
users:
demouser: # database owner
- superuser
- createdb
databases:
demo: demouser # dbname: owner
postgresql:
version: "14"
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
apiVersion: v1
data:
password: RzZ6RjQ5bWUxZnZnV0NoQ1dtaTY0aFpWczJSWEZiU1FhSWdNN3ROSWl1Uk9mMEk4aldoNmpKRmxQUThVaTFpMA==
username: ZGVtb3VzZXI=
kind: Secret
metadata:
labels:
application: spilo
cluster-name: postgres-demo-standby-cluster-target
team: postgres
name: demouser.postgres-demo-standby-cluster-target.credentials.postgresql.acid.zalan.do
namespace: postgres
type: Opaque
---
apiVersion: v1
data:
password: MDBva3lDU2x1YkZXdkQwdWgxRlJSRzU5OEg3bU1yWE11djRHc0tPTHQyb2ZOMlZ5UDNkd1pxcU9WOEk5UEtOaA==
username: cG9zdGdyZXM=
kind: Secret
metadata:
labels:
application: spilo
cluster-name: postgres-demo-standby-cluster-target
team: postgres
name: postgres.postgres-demo-standby-cluster-target.credentials.postgresql.acid.zalan.do
namespace: postgres
type: Opaque
---
apiVersion: v1
data:
password: ZGJkYlozY2diZ3pGM2lhVlBaeGhKU0d4Vm1yUVlId2ZxYXV3cmx5eUNZdnJ5dG5DeEprbVdtUkU3R0F5eWNZaw==
username: c3RhbmRieQ==
kind: Secret
metadata:
labels:
application: spilo
cluster-name: postgres-demo-standby-cluster-target
team: postgres
name: standby.postgres-demo-standby-cluster-target.credentials.postgresql.acid.zalan.do
namespace: postgres
type: Opaque
---
apiVersion: "acid.zalan.do/v1"
kind: postgresql
metadata:
name: postgres-demo-standby-cluster-target
namespace: postgres
spec:
teamId: "postgres"
volume:
size: 2Gi
numberOfInstances: 2
users:
demouser: # database owner
- superuser
- createdb
databases:
demo: demouser # dbname: owner
standby:
# standby_host: "postgres-demo-standby-cluster-source.postgres"
s3_wal_path: "s3://postgresql/spilo/postgres-demo-standby-cluster-source/wal/14"
env:
- name: STANDBY_AWS_ACCESS_KEY_ID
value: postgresql
- name: STANDBY_WITH_WALE
value: "true"
- name: STANDBY_USE_WALG_BACKUP
value: "true"
- name: STANDBY_USE_WALG_RESTORE
value: "true"
- name: STANDBY_AWS_SECRET_ACCESS_KEY
value: Supersecret
- name: STANDBY_AWS_ENDPOINT
value: "http://minio.home.lab:9000"
- name: STANDBY_AWS_REGION
value: de01
- name: STANDBY_WAL_BUCKET_SCOPE_PREFIX
value: ""
- name: STANDBY_WAL_S3_BUCKET
value: postgresql
- name: STANDBY_AWS_S3_FORCE_PATH_STYLE
value: "true"
- name: STANDBY_WALE_ENV_DIR
value: "/run/etc/wal-e.d/env-standby"
postgresql:
version: "14"

0 comments on commit d67da99

Please sign in to comment.