-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add shard PITR and application level backup page in MongoDB (#677)
Signed-off-by: sayedppqq <[email protected]>
- Loading branch information
Showing
10 changed files
with
811 additions
and
6 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
docs/guides/mongodb/backup/kubestash/application-level/examples/backupconfiguration.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
apiVersion: core.kubestash.com/v1alpha1 | ||
kind: BackupConfiguration | ||
metadata: | ||
name: sample-mongodb-backup | ||
namespace: demo | ||
spec: | ||
target: | ||
apiGroup: kubedb.com | ||
kind: MongoDB | ||
namespace: demo | ||
name: sample-mongodb | ||
backends: | ||
- name: s3-backend | ||
storageRef: | ||
namespace: demo | ||
name: s3-storage | ||
retentionPolicy: | ||
name: backup-rp | ||
namespace: demo | ||
sessions: | ||
- name: frequent-backup | ||
scheduler: | ||
schedule: "*/5 * * * *" | ||
jobTemplate: | ||
backoffLimit: 1 | ||
repositories: | ||
- name: s3-mongodb-repo | ||
backend: s3-backend | ||
directory: /mongodb | ||
encryptionSecret: | ||
name: encry-secret | ||
namespace: demo | ||
addon: | ||
name: mongodb-addon | ||
tasks: | ||
- name: manifest-backup | ||
- name: logical-backup |
18 changes: 18 additions & 0 deletions
18
docs/guides/mongodb/backup/kubestash/application-level/examples/backupstorage.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
apiVersion: storage.kubestash.com/v1alpha1 | ||
kind: BackupStorage | ||
metadata: | ||
name: s3-storage | ||
namespace: demo | ||
spec: | ||
storage: | ||
provider: s3 | ||
s3: | ||
endpoint: us-east-1.linodeobjects.com | ||
bucket: kubestash-testing | ||
region: us-east-1 | ||
prefix: demo-application-level | ||
secretName: s3-secret | ||
usagePolicy: | ||
allowedNamespaces: | ||
from: All | ||
deletionPolicy: WipeOut |
21 changes: 21 additions & 0 deletions
21
docs/guides/mongodb/backup/kubestash/application-level/examples/restoresession.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
apiVersion: core.kubestash.com/v1alpha1 | ||
kind: RestoreSession | ||
metadata: | ||
name: restore-sample-mongodb | ||
namespace: demo | ||
spec: | ||
manifestOptions: | ||
restoreNamespace: dev | ||
mongoDB: | ||
db: true | ||
dataSource: | ||
repository: s3-mongodb-repo | ||
snapshot: latest | ||
encryptionSecret: | ||
name: encry-secret | ||
namespace: demo | ||
addon: | ||
name: mongodb-addon | ||
tasks: | ||
- name: logical-backup-restore | ||
- name: manifest-restore |
12 changes: 12 additions & 0 deletions
12
docs/guides/mongodb/backup/kubestash/application-level/examples/retentionpolicy.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: storage.kubestash.com/v1alpha1 | ||
kind: RetentionPolicy | ||
metadata: | ||
name: backup-rp | ||
namespace: demo | ||
spec: | ||
maxRetentionPeriod: 2mo | ||
successfulSnapshots: | ||
last: 10 | ||
usagePolicy: | ||
allowedNamespaces: | ||
from: All |
17 changes: 17 additions & 0 deletions
17
docs/guides/mongodb/backup/kubestash/application-level/examples/sample-mongodb.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
apiVersion: kubedb.com/v1 | ||
kind: MongoDB | ||
metadata: | ||
name: sample-mongodb | ||
namespace: demo | ||
spec: | ||
version: "4.4.26" | ||
replicaSet: | ||
name: "replicaset" | ||
replicas: 3 | ||
storageType: Durable | ||
storage: | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 1Gi |
Oops, something went wrong.