-
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 SingleStore KubeStash Docs (#681)
Signed-off-by: Ashraful Haque Tani <[email protected]> Co-authored-by: Anisur Rahman <[email protected]>
- Loading branch information
1 parent
da7509c
commit e7907cb
Showing
46 changed files
with
4,069 additions
and
43 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
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
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
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
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
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
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 SingleStore | ||
menu: | ||
docs_{{ .version }}: | ||
identifier: guides-sdb-backup | ||
name: Backup & Restore | ||
parent: guides-singlestore | ||
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 SingleStore | KubeStash | ||
menu: | ||
docs_{{ .version }}: | ||
identifier: guides-sdb-backup-stashv2 | ||
name: KubeStash (aka Stash 2.0) | ||
parent: guides-sdb-backup | ||
weight: 50 | ||
menu_name: docs_{{ .version }} | ||
--- |
37 changes: 37 additions & 0 deletions
37
docs/guides/singlestore/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-singlestore-backup | ||
namespace: demo | ||
spec: | ||
target: | ||
apiGroup: kubedb.com | ||
kind: Singlestore | ||
namespace: demo | ||
name: sample-singlestore | ||
backends: | ||
- name: gcs-backend | ||
storageRef: | ||
namespace: demo | ||
name: gcs-storage | ||
retentionPolicy: | ||
name: demo-retention | ||
namespace: demo | ||
sessions: | ||
- name: frequent-backup | ||
scheduler: | ||
schedule: "*/5 * * * *" | ||
jobTemplate: | ||
backoffLimit: 1 | ||
repositories: | ||
- name: gcs-singlestore-repo | ||
backend: gcs-backend | ||
directory: /singlestore | ||
encryptionSecret: | ||
name: encrypt-secret | ||
namespace: demo | ||
addon: | ||
name: singlestore-addon | ||
tasks: | ||
- name: manifest-backup | ||
- name: logical-backup |
17 changes: 17 additions & 0 deletions
17
docs/guides/singlestore/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,17 @@ | ||
apiVersion: storage.kubestash.com/v1alpha1 | ||
kind: BackupStorage | ||
metadata: | ||
name: gcs-storage | ||
namespace: demo | ||
spec: | ||
storage: | ||
provider: gcs | ||
gcs: | ||
bucket: kubestash-qa | ||
prefix: demo | ||
secretName: gcs-secret | ||
usagePolicy: | ||
allowedNamespaces: | ||
from: All | ||
default: true | ||
deletionPolicy: Delete |
20 changes: 20 additions & 0 deletions
20
docs/guides/singlestore/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,20 @@ | ||
apiVersion: core.kubestash.com/v1alpha1 | ||
kind: RestoreSession | ||
metadata: | ||
name: restore-sample-singlestore | ||
namespace: demo | ||
spec: | ||
manifestOptions: | ||
singlestore: | ||
restoreNamespace: dev | ||
dataSource: | ||
repository: gcs-singlestore-repo | ||
snapshot: latest | ||
encryptionSecret: | ||
name: encrypt-secret | ||
namespace: demo | ||
addon: | ||
name: singlestore-addon | ||
tasks: | ||
- name: logical-backup-restore | ||
- name: manifest-restore |
15 changes: 15 additions & 0 deletions
15
docs/guides/singlestore/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,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: All |
50 changes: 50 additions & 0 deletions
50
docs/guides/singlestore/backup/kubestash/application-level/examples/sample-singlestore.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,50 @@ | ||
apiVersion: kubedb.com/v1alpha2 | ||
kind: Singlestore | ||
metadata: | ||
name: sample-singlestore | ||
namespace: demo | ||
spec: | ||
version: "8.7.10" | ||
topology: | ||
aggregator: | ||
replicas: 2 | ||
podTemplate: | ||
spec: | ||
containers: | ||
- name: singlestore | ||
resources: | ||
limits: | ||
memory: "2Gi" | ||
cpu: "600m" | ||
requests: | ||
memory: "2Gi" | ||
cpu: "600m" | ||
storage: | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 1Gi | ||
leaf: | ||
replicas: 3 | ||
podTemplate: | ||
spec: | ||
containers: | ||
- name: singlestore | ||
resources: | ||
limits: | ||
memory: "2Gi" | ||
cpu: "600m" | ||
requests: | ||
memory: "2Gi" | ||
cpu: "600m" | ||
storage: | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 10Gi | ||
licenseSecret: | ||
name: license-secret | ||
storageType: Durable | ||
deletionPolicy: WipeOut |
Oops, something went wrong.