Skip to content

Commit

Permalink
add logical backup restore complete doc
Browse files Browse the repository at this point in the history
Signed-off-by: Neaj Morshad <[email protected]>
  • Loading branch information
Neaj-Morshad-101 committed Sep 18, 2024
1 parent 4fe12d3 commit 4f0fc71
Show file tree
Hide file tree
Showing 6 changed files with 239 additions and 297 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
apiVersion: core.kubestash.com/v1alpha1
kind: BackupConfiguration
metadata:
name: sample-redis-backup
name: redis-cluster-backup
namespace: demo
spec:
target:
apiGroup: kubedb.com
kind: Redis
namespace: demo
name: sample-redis
name: redis-cluster
backends:
- name: gcs-backend
storageRef:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ spec:
storage:
provider: gcs
gcs:
bucket: kubestash-qa
bucket: neaj-demo
prefix: demo
secretName: gcs-secret
usagePolicy:
allowedNamespaces:
from: All
default: true
deletionPolicy: WipeOut
deletionPolicy: Delete
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
apiVersion: kubedb.com/v1
kind: Redis
metadata:
name: sample-redis
name: redis-cluster
namespace: demo
spec:
version: "16.1"
replicas: 3
standbyMode: Hot
streamingMode: Synchronous
version: 7.4.0
mode: Cluster
cluster:
shards: 3
replicas: 2
storageType: Durable
storage:
accessModes:
- ReadWriteOnce
storageClassName: "standard"
resources:
requests:
storage: 1Gi
deletionPolicy: WipeOut
accessModes:
- ReadWriteOnce
deletionPolicy: Delete
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
apiVersion: kubedb.com/v1
kind: Redis
metadata:
name: restored-redis
name: restored-redis-cluster
namespace: demo
spec:
init:
waitForInitialRestore: true
version: "16.1"
replicas: 3
standbyMode: Hot
streamingMode: Synchronous
version: 7.4.0
mode: Cluster
cluster:
shards: 3
replicas: 2
storageType: Durable
storage:
accessModes:
- ReadWriteOnce
storageClassName: "standard"
resources:
requests:
storage: 1Gi
deletionPolicy: WipeOut
accessModes:
- ReadWriteOnce
deletionPolicy: Delete
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
apiVersion: core.kubestash.com/v1alpha1
kind: RestoreSession
metadata:
name: sample-redis-restore
name: redis-cluster-restore
namespace: demo
spec:
target:
apiGroup: kubedb.com
kind: Redis
namespace: demo
name: restored-redis
name: restored-redis-cluster
dataSource:
repository: gcs-redis-repo
snapshot: latest
Expand Down
Loading

0 comments on commit 4f0fc71

Please sign in to comment.