-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(velero): add documentation about velero-restore script
- Loading branch information
1 parent
80143ff
commit e1e75a0
Showing
3 changed files
with
25 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
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 @@ | ||
# Velero Backup Restoration | ||
|
||
Velero is a backup system that perform disaster recovery, and migrate Kubernetes cluster resources and persistent volumes. | ||
|
||
Using this in a Kubernetes cluster where Capsule is installed can lead to an incomplete restore of the cluster's Tenants. This is due to the fact that Velero omits the `ownerReferences` section from the tenant's namespace manifests when backup them. | ||
|
||
To avoid this problem you can use the script `velero-restore.sh` under the `hack/` folder. | ||
|
||
Below are some examples on how to use the script to avoid incomplete restorations. | ||
|
||
## Getting Started | ||
|
||
In case of a data loss, the right thing to do is to restore the cluster with **Velero** at first. Once Velero has finished, you can proceed using the script to complete the restoration. | ||
|
||
```bash | ||
./velero-restore.sh --kubeconfing /path/to/your/kubeconfig restore | ||
``` | ||
|
||
Running this command, we are going to patch the tenant's namespaces manifests that are actually `ownerReferences`-less. Once the command has finished its run, you got the cluster back. |
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