-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reorg install and plugin docs (#1916)
* Reorg plugin docs Signed-off-by: Carlisia <[email protected]> * Improve install docs Signed-off-by: Carlisia <[email protected]> * Change path Signed-off-by: Carlisia <[email protected]> * Fix broken links Signed-off-by: Carlisia <[email protected]> * Address more feedback Signed-off-by: Carlisia <[email protected]> * One more fix Signed-off-by: Carlisia <[email protected]> * Minor changes to address feedback Signed-off-by: Carlisia <[email protected]> * More fixes Signed-off-by: Carlisia <[email protected]>
- Loading branch information
Showing
19 changed files
with
255 additions
and
273 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
File renamed without changes.
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
File renamed without changes.
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,63 @@ | ||
## Examples | ||
|
||
After you set up the Velero server, try these examples: | ||
|
||
### Basic example (without PersistentVolumes) | ||
|
||
1. Start the sample nginx app: | ||
|
||
```bash | ||
kubectl apply -f examples/nginx-app/base.yaml | ||
``` | ||
|
||
1. Create a backup: | ||
|
||
```bash | ||
velero backup create nginx-backup --include-namespaces nginx-example | ||
``` | ||
|
||
1. Simulate a disaster: | ||
|
||
```bash | ||
kubectl delete namespaces nginx-example | ||
``` | ||
|
||
Wait for the namespace to be deleted. | ||
|
||
1. Restore your lost resources: | ||
|
||
```bash | ||
velero restore create --from-backup nginx-backup | ||
``` | ||
|
||
### Snapshot example (with PersistentVolumes) | ||
|
||
> NOTE: For Azure, you must run Kubernetes version 1.7.2 or later to support PV snapshotting of managed disks. | ||
|
||
1. Start the sample nginx app: | ||
|
||
```bash | ||
kubectl apply -f examples/nginx-app/with-pv.yaml | ||
``` | ||
|
||
1. Create a backup with PV snapshotting: | ||
|
||
```bash | ||
velero backup create nginx-backup --include-namespaces nginx-example | ||
``` | ||
|
||
1. Simulate a disaster: | ||
|
||
```bash | ||
kubectl delete namespaces nginx-example | ||
``` | ||
|
||
Because the default [reclaim policy][1] for dynamically-provisioned PVs is "Delete", these commands should trigger your cloud provider to delete the disk that backs the PV. Deletion is asynchronous, so this may take some time. **Before continuing to the next step, check your cloud provider to confirm that the disk no longer exists.** | ||
|
||
1. Restore your lost resources: | ||
|
||
```bash | ||
velero restore create --from-backup nginx-backup | ||
``` | ||
|
||
[1]: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#reclaiming |
File renamed without changes.
Oops, something went wrong.