Simplify CRD backup command (#8889)

Co-authored-by: John Howard <howardjohn@google.com>
This commit is contained in:
Istio Automation 2021-02-01 17:04:59 -08:00 committed by GitHub
parent f039fe773b
commit eb318dd57a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -127,14 +127,13 @@ Before upgrading Istio in your cluster, we recommend creating a backup of your
custom configurations, and restoring it from backup if necessary:
{{< text bash >}}
$ kubectl get crds | grep 'istio.io' | cut -f1-1 -d "." | \
xargs -n1 -I{} sh -c "kubectl get --all-namespaces -o yaml {}; echo ---" > $HOME/ISTIO_RESOURCE_BACKUP.yaml
$ kubectl get istio-io --all-namespaces -oyaml > $HOME/istio_resource_backup.yaml
{{< /text >}}
You can restore your custom configuration like this:
{{< text bash >}}
$ kubectl apply -f $HOME/ISTIO_RESOURCE_BACKUP.yaml
$ kubectl apply -f $HOME/istio_resource_backup.yaml
{{< /text >}}
### Migrating from non-Helm installations