-
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.
Signed-off-by: Rudro-25 <[email protected]>
- Loading branch information
Showing
30 changed files
with
2,457 additions
and
0 deletions.
There are no files selected for viewing
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,10 @@ | ||
--- | ||
title: Backup & Restore ZooKeeper | ||
menu: | ||
docs_{{ .version }}: | ||
identifier: guides-zk-backup | ||
name: Backup & Restore | ||
parent: zk-zookeeper-guides | ||
weight: 40 | ||
menu_name: docs_{{ .version }} | ||
--- |
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,10 @@ | ||
--- | ||
title: Backup & Restore PostgreSQL | KubeStash | ||
menu: | ||
docs_{{ .version }}: | ||
identifier: guides-zk-backup-stashv2 | ||
name: KubeStash (aka Stash 2.0) | ||
parent: guides-zk-backup | ||
weight: 50 | ||
menu_name: docs_{{ .version }} | ||
--- |
18 changes: 18 additions & 0 deletions
18
docs/guides/zookeeper/backup/kubestash/auto-backup/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: ap-south-1.linodeobjects.com | ||
bucket: rudro | ||
region: ap-south-1 | ||
prefix: blueprint | ||
secretName: s3-secret | ||
usagePolicy: | ||
allowedNamespaces: | ||
from: All | ||
deletionPolicy: WipeOut |
37 changes: 37 additions & 0 deletions
37
docs/guides/zookeeper/backup/kubestash/auto-backup/examples/customize-backupblueprint.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: BackupBlueprint | ||
metadata: | ||
name: zookeeper-customize-backup-blueprint | ||
namespace: demo | ||
spec: | ||
usagePolicy: | ||
allowedNamespaces: | ||
from: Same | ||
backupConfigurationTemplate: | ||
deletionPolicy: OnDelete | ||
backends: | ||
- name: s3-backend | ||
storageRef: | ||
namespace: demo | ||
name: s3-storage | ||
retentionPolicy: | ||
name: demo-retention | ||
namespace: demo | ||
sessions: | ||
- name: frequent-backup | ||
sessionHistoryLimit: 3 | ||
scheduler: | ||
schedule: ${schedule} | ||
jobTemplate: | ||
backoffLimit: 1 | ||
repositories: | ||
- name: ${repoName} | ||
backend: s3-backend | ||
directory: ${namespace}/${targetName} | ||
encryptionSecret: | ||
name: encrypt-secret | ||
namespace: demo | ||
addon: | ||
name: zookeeper-addon | ||
tasks: | ||
- name: logical-backup |
37 changes: 37 additions & 0 deletions
37
docs/guides/zookeeper/backup/kubestash/auto-backup/examples/default-backupblueprint.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: BackupBlueprint | ||
metadata: | ||
name: zookeeper-default-backup-blueprint | ||
namespace: demo | ||
spec: | ||
usagePolicy: | ||
allowedNamespaces: | ||
from: Same | ||
backupConfigurationTemplate: | ||
deletionPolicy: OnDelete | ||
backends: | ||
- name: s3-backend | ||
storageRef: | ||
namespace: demo | ||
name: s3-storage | ||
retentionPolicy: | ||
name: demo-retention | ||
namespace: demo | ||
sessions: | ||
- name: frequent-backup | ||
sessionHistoryLimit: 3 | ||
scheduler: | ||
schedule: "*/5 * * * *" | ||
jobTemplate: | ||
backoffLimit: 1 | ||
repositories: | ||
- name: default-blueprint | ||
backend: s3-backend | ||
directory: /default-blueprint | ||
encryptionSecret: | ||
name: encrypt-secret | ||
namespace: demo | ||
addon: | ||
name: zookeeper-addon | ||
tasks: | ||
- name: logical-backup |
15 changes: 15 additions & 0 deletions
15
docs/guides/zookeeper/backup/kubestash/auto-backup/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,15 @@ | ||
apiVersion: storage.kubestash.com/v1alpha1 | ||
kind: RetentionPolicy | ||
metadata: | ||
name: demo-retention | ||
namespace: demo | ||
spec: | ||
default: true | ||
failedSnapshots: | ||
last: 2 | ||
maxRetentionPeriod: 2mo | ||
successfulSnapshots: | ||
last: 5 | ||
usagePolicy: | ||
allowedNamespaces: | ||
from: Same |
24 changes: 24 additions & 0 deletions
24
docs/guides/zookeeper/backup/kubestash/auto-backup/examples/sample-zookeeper-2.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,24 @@ | ||
apiVersion: kubedb.com/v1alpha2 | ||
kind: ZooKeeper | ||
metadata: | ||
name: sample-zookeeper-2 | ||
namespace: demo | ||
annotations: | ||
blueprint.kubestash.com/name: zookeeper-customize-backup-blueprint | ||
blueprint.kubestash.com/namespace: demo | ||
variables.kubestash.com/schedule: "*/10 * * * *" | ||
variables.kubestash.com/repoName: customize-blueprint | ||
variables.kubestash.com/namespace: demo | ||
variables.kubestash.com/targetName: sample-zookeeper-2 | ||
variables.kubestash.com/targetedDatabase: zookeeper | ||
spec: | ||
version: "3.8.3" | ||
adminServerPort: 8080 | ||
replicas: 3 | ||
storage: | ||
resources: | ||
requests: | ||
storage: "1Gi" | ||
accessModes: | ||
- ReadWriteOnce | ||
deletionPolicy: "WipeOut" |
19 changes: 19 additions & 0 deletions
19
docs/guides/zookeeper/backup/kubestash/auto-backup/examples/sample-zookeeper.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,19 @@ | ||
apiVersion: kubedb.com/v1alpha2 | ||
kind: ZooKeeper | ||
metadata: | ||
name: sample-zookeeper | ||
namespace: demo | ||
annotations: | ||
blueprint.kubestash.com/name: zookeeper-default-backup-blueprint | ||
blueprint.kubestash.com/namespace: demo | ||
spec: | ||
version: "3.8.3" | ||
adminServerPort: 8080 | ||
replicas: 3 | ||
storage: | ||
resources: | ||
requests: | ||
storage: "1Gi" | ||
accessModes: | ||
- ReadWriteOnce | ||
deletionPolicy: "WipeOut" |
Oops, something went wrong.