-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DOC] Edit backuprestore content initial (#21)
Co-authored-by: Thomas Polkowski <[email protected]> Co-authored-by: sakshisharma84 <[email protected]> Co-authored-by: Noah Merlis-Stephens <[email protected]> Co-authored-by: Magdalena Dziadosz <[email protected]>
- Loading branch information
1 parent
5c3c598
commit be88301
Showing
4 changed files
with
146 additions
and
79 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,64 @@ | ||
# Backup and Restore | ||
|
||
>MKE 4 backup is enabled by default. | ||
MKE 4 supports backup and restore of cluster data through the use of the | ||
[Velero](https://velero.io/) addon. | ||
|
||
## Configuration | ||
|
||
The `backup` section of the MKE4 configuration file renders as follows: | ||
|
||
```yaml | ||
backup: | ||
enabled: true | ||
storage_provider: | ||
type: InCluster | ||
in_cluster_options: | ||
exposed: true | ||
distributed: false | ||
``` | ||
By default, MKE 4 supports backups that use the in-cluster storage | ||
provider, as indicated in the `type` option setting of `InCluster`. MKE 4 | ||
in-cluster backups are implemented using the [MinIO | ||
addon](https://microk8s.io/docs/addon-minio). | ||
|
||
The `exposed` option setting of `true` indicates that the MinIO service is | ||
exposed through `NodePort`, which Velero requires to function correctly. Core | ||
backup functionality should work, however, even if | ||
the service is not exposed. | ||
|
||
The `distributed` option configures MinIO storage to run in distributed mode. | ||
|
||
Refer to the following table for detail on all of the conifguration file | ||
`backup` fields: | ||
|
||
| Field | Description | Valid values | Default | | ||
|------------------------------------------------------------|------------------------------------------------------------------------------------|---------------------|:---------:| | ||
| enabled | Indicates whether backup/restore functionality is enabled. | true, false | true | | ||
| storage_provider.type | Indicates whether the storage type in use is in-cluster or external. | InCluster, External | InCluster | | ||
| storage_provider.in_cluster_options.exposed | Indicates whether to expose InCluster (MinIO) storage through NodePort. | true, false | true | | ||
| storage_provider.in_cluster_options.distributed | Indicates whether to run MinIO in distributed mode. | true, false | false | | ||
| storage_provider.external_options.provider | Name of the external storage provider. AWS is currently the only available option. | aws | aws | | ||
| storage_provider.external_options.bucket | Name of the pre-created bucket to use for backup storage. | "" | "" | | ||
| storage_provider.external_options.region | Region in which the bucket exists. | "" | "" | | ||
| storage_provider.external_options.credentials_file_path | Path to the credentials file. | "" | "" | | ||
| storage_provider.external_options.credentials_file_profile | Profile in the Credentials file to use. | "" | "" | | ||
|
||
## Create backups and perform restores | ||
|
||
For information on how to create backups and perform restores for both storage | ||
provider types, refer to: | ||
|
||
- In-cluster storage provider: [in_cluster.md](./in_cluster.md) | ||
- External storage provider: [external.md](./external.md) | ||
|
||
## Existing Limitations | ||
|
||
- Scheduled backups, an MKE 3 feature that is planned for integration to MKE 4, | ||
have not yet been implemented. | ||
|
||
- Backups must currently be restored in the same cluster in which the backup | ||
was taken, and thus restoring a backup to a new set of nodes is not yet | ||
supported for the in-cluster storage provider. |
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