-
Notifications
You must be signed in to change notification settings - Fork 0
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: Anisur Rahman <[email protected]>
- Loading branch information
1 parent
10d5444
commit a11110d
Showing
15 changed files
with
927 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
title: Addons | KubeStash | ||
menu: | ||
docs_{{ .version }}: | ||
identifier: kubestash-addons | ||
name: Addons | ||
weight: 60 | ||
pre: dropdown | ||
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,41 @@ | ||
--- | ||
title: MySQL Addon Overview | KubeStash | ||
description: MySQL Addon Overview | KubeStash | ||
menu: | ||
docs_{{ .version }}: | ||
identifier: kubestash-mysql-readme | ||
name: Readme | ||
parent: kubestash-mysql | ||
weight: -1 | ||
product_name: kubestash | ||
menu_name: docs_{{ .version }} | ||
section_menu_id: kubestash-addons | ||
url: /docs/{{ .version }}/addons/mysql/ | ||
aliases: | ||
- /docs/{{ .version }}/addons/mysql/README/ | ||
--- | ||
|
||
# KubeStash MySQL Addon | ||
|
||
KubeStash v2024.9.30+ supports extending its functionality through addons. KubeStash MySQL addon enables KubeStash to backup and restore MySQL databases. | ||
|
||
This guide will give you an overview of which MySQL versions are supported and how the docs are organized. | ||
|
||
## Supported MySQL Versions | ||
|
||
KubeStash has the following addon versions for MySQL: | ||
|
||
{{< versionlist "mysql">}} | ||
|
||
Here, the addon follows `M.M.P` versioning scheme where `M.M.P` (Major.Minor.Patch) represents the respective database version. | ||
|
||
## Addon Version Compatibility | ||
|
||
Any addon with matching major version with the database version should be able to take backup of that database. For example, MySQL addon with version `8.x.x` should be able take backup of any MySQL of `8.x.x` series. However, this might not be true for some versions. In that case, we will have separate addon for that version. | ||
|
||
## Documentation Overview | ||
|
||
KubeStash MySQL documentations are organized as below: | ||
|
||
- [How does it work?](/docs/addons/mysql/overview/index.md) gives an overview of how backup and restore process for MySQL database works in Stash. | ||
- [Standalone MySQL Database](/docs/addons/mysql/logical/index.md) shows how to backup and restore an externally managed MySQL database. |
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: KubeStash MySQL Addon | ||
menu: | ||
docs_{{ .version }}: | ||
identifier: kubestash-mysql | ||
name: MySQL | ||
parent: kubestash-addons | ||
weight: 50 | ||
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,12 @@ | ||
apiVersion: appcatalog.appscode.com/v1alpha1 | ||
kind: AppBinding | ||
metadata: | ||
name: mysql-appbinding | ||
namespace: demo | ||
spec: | ||
clientConfig: | ||
url: mysql://kubestash-test-do-user-165729-0.m.db.ondigitalocean.com:25060/defaultdb?ssl-mode=REQUIRED | ||
secret: | ||
name: mysql-auth-secret | ||
type: mysql | ||
version: "8.0.21" |
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,9 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: mysql-auth-secret | ||
namespace: demo | ||
type: Opaque | ||
stringData: | ||
username: doadmin # replace with your auth username | ||
password: "" # <replace with your authentication password> |
38 changes: 38 additions & 0 deletions
38
docs/addons/mysql/logical/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,38 @@ | ||
apiVersion: core.kubestash.com/v1alpha1 | ||
kind: BackupConfiguration | ||
metadata: | ||
name: sample-mysql-backup | ||
namespace: demo | ||
spec: | ||
target: | ||
apiGroup: appcatalog.appscode.com | ||
kind: AppBinding | ||
name: mysql-appbinding | ||
namespace: demo | ||
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-mysql-repo | ||
backend: gcs-backend | ||
directory: /mysql | ||
encryptionSecret: | ||
name: encrypt-secret | ||
namespace: demo | ||
addon: | ||
name: mysql-addon | ||
tasks: | ||
- name: logical-backup | ||
params: | ||
databases: playground |
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 |
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-mysql | ||
namespace: demo | ||
spec: | ||
target: | ||
apiGroup: appcatalog.appscode.com | ||
kind: AppBinding | ||
name: mysql-appbinding | ||
namespace: demo | ||
dataSource: | ||
repository: gcs-mysql-repo | ||
snapshot: latest | ||
encryptionSecret: | ||
name: encrypt-secret | ||
namespace: demo | ||
addon: | ||
name: mysql-addon | ||
tasks: | ||
- name: logical-backup-restore |
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 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.