mirror of https://github.com/istio/istio.io.git
Simplify CRD backup command (#8889)
Co-authored-by: John Howard <howardjohn@google.com>
This commit is contained in:
parent
f039fe773b
commit
eb318dd57a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue