From f18e185655cc4f336fafc644fd6b33211d501a55 Mon Sep 17 00:00:00 2001 From: ndx robot Date: Wed, 15 Jun 2022 19:50:22 +0800 Subject: [PATCH] update karamda working with velero md Signed-off-by: ndx robot --- docs/working-with-velero.md | 96 ++++++++++++++++++++++++++++++++++++- 1 file changed, 95 insertions(+), 1 deletion(-) diff --git a/docs/working-with-velero.md b/docs/working-with-velero.md index 2a2e46f69..44cde802c 100644 --- a/docs/working-with-velero.md +++ b/docs/working-with-velero.md @@ -116,7 +116,7 @@ Velero consists of two components: nginx 2/2 2 2 17s ``` -### Back up and restore Karmada resources +### Back up and restore kubernetes resources independent Create a backup in `member1`: ```shell velero backup create nginx-backup --selector app=nginx @@ -157,6 +157,100 @@ NAME READY UP-TO-DATE AVAILABLE AGE nginx 2/2 2 2 21s ``` +### Backup and restore of kubernetes resources through Velero combined with karmada + +In Karmada control plane, we need to install velero crds but do not need controllers to reconcile them. They are treated as resource templates, not specific resource instances.Based on work API here, they will be encapsulated as a work object deliverd to member clusters and reconciled by velero controllers in member clusters finally. + +Create velero crds in Karmada control plane: +remote velero crd directory: `https://github.com/vmware-tanzu/helm-charts/tree/main/charts/velero/crds/` + +Create a backup in `karmada-apiserver` and Distributed to `member1` cluster through PropagationPolicy + +```shell +# create backup policy +cat <