Skip to content

Commit

Permalink
Postgres: Add Point-in-Time Recovery (PITR) doc (#380)
Browse files Browse the repository at this point in the history
  • Loading branch information
hossainemruz authored and tamalsaha committed Feb 18, 2019
1 parent ae4e785 commit 4decbb4
Show file tree
Hide file tree
Showing 4 changed files with 402 additions and 0 deletions.
21 changes: 21 additions & 0 deletions docs/examples/postgres/initialization/pitr/pg-original.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: kubedb.com/v1alpha1
kind: Postgres
metadata:
name: pg-original
namespace: demo
spec:
version: "10.2-v2"
replicas: 1
terminationPolicy: Delete
storage:
storageClassName: "standard"
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
archiver:
storage:
storageSecretName: s3-secret
s3:
bucket: kubedb
24 changes: 24 additions & 0 deletions docs/examples/postgres/initialization/pitr/pitr-1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: kubedb.com/v1alpha1
kind: Postgres
metadata:
name: pitr-1
namespace: demo
spec:
version: "10.2-v2"
replicas: 1
terminationPolicy: Delete
storage:
storageClassName: "standard"
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
init:
postgresWAL:
storageSecretName: s3-secret
s3:
bucket: kubedb
prefix: 'kubedb/demo/pg-original/archive'
pitr:
targetTime: "2019-01-07 08:30:00+00"
24 changes: 24 additions & 0 deletions docs/examples/postgres/initialization/pitr/pitr-2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: kubedb.com/v1alpha1
kind: Postgres
metadata:
name: pitr-2
namespace: demo
spec:
version: "10.2-v2"
replicas: 1
terminationPolicy: Delete
storage:
storageClassName: "standard"
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
init:
postgresWAL:
storageSecretName: s3-secret
s3:
bucket: kubedb
prefix: 'kubedb/demo/pg-original/archive'
pitr:
targetTime: "2019-01-07 08:40:00+00"
Loading

0 comments on commit 4decbb4

Please sign in to comment.