mirror of https://github.com/istio/istio.io.git
Replace experimental uninstall command with uninstall command (#11736)
* Replace experimental uninstall command with uninstall command Signed-off-by: Tong Li <litong01@us.ibm.com> * Update content/en/docs/setup/upgrade/canary/index.md Replace experimental uninstall command with uninstall command Co-authored-by: Frank Budinsky <frankb@ca.ibm.com> * Apply suggestions from code review Replace experimental uninstall command with uninstall command Co-authored-by: Frank Budinsky <frankb@ca.ibm.com> * Replace experimental uninstall command with uninstall command Signed-off-by: Tong Li <litong01@us.ibm.com> * Replace experimental uninstall command with uninstall command Signed-off-by: Tong Li <litong01@us.ibm.com> * Replace experimental uninstall command with uninstall command Signed-off-by: Tong Li <litong01@us.ibm.com> * Replace experimental uninstall command with uninstall command Signed-off-by: Tong Li <litong01@us.ibm.com> * Update content/en/docs/tasks/traffic-management/egress/wildcard-egress-hosts/index.md Co-authored-by: Frank Budinsky <frankb@ca.ibm.com> * Replace experimental uninstall command with uninstall command Signed-off-by: Tong Li <litong01@us.ibm.com> Signed-off-by: Tong Li <litong01@us.ibm.com> Co-authored-by: Frank Budinsky <frankb@ca.ibm.com>
This commit is contained in:
parent
8271a94b28
commit
46eb244468
|
@ -104,6 +104,6 @@ _verify_elided run_curl "${snip_reaching_kubernetes_services_from_the_virtual_ma
|
|||
# @cleanup
|
||||
docker stop vm
|
||||
kubectl delete -f samples/multicluster/expose-istiod.yaml -n istio-system --ignore-not-found=true
|
||||
echo y | istioctl x uninstall --revision=default
|
||||
echo y | istioctl uninstall --revision=default
|
||||
cleanup_sleep_sample
|
||||
kubectl delete namespace istio-system vm bookinfo --ignore-not-found=true
|
||||
|
|
|
@ -35,5 +35,5 @@ _verify_contains snip_apply_and_wait_for_httpbin_vs "$snip_apply_and_wait_for_ht
|
|||
kubectl delete -f samples/httpbin/httpbin.yaml
|
||||
kubectl delete -f samples/httpbin/httpbin-gateway.yaml
|
||||
# Delete the Istio this test installed
|
||||
echo y | istioctl x uninstall --revision "default"
|
||||
echo y | istioctl uninstall --revision "default"
|
||||
kubectl delete ns istio-system
|
||||
|
|
|
@ -82,5 +82,5 @@ _verify_contains snip_get_stats "circuit_breakers"
|
|||
set +e
|
||||
cleanup_httpbin_sample
|
||||
cleanup_sleep_sample
|
||||
echo y | istioctl x uninstall --revision=default
|
||||
echo y | istioctl uninstall --revision=default
|
||||
kubectl delete ns istio-system
|
||||
|
|
|
@ -52,5 +52,5 @@ kubectl delete -f samples/httpbin/httpbin.yaml
|
|||
kubectl delete ns httpbin
|
||||
|
||||
# Delete the Istio this test installed
|
||||
echo y | istioctl x uninstall --revision "default"
|
||||
echo y | istioctl uninstall --revision "default"
|
||||
kubectl delete ns istio-system
|
||||
|
|
|
@ -40,5 +40,5 @@ _verify_contains get_productpage "glyphicon glyphicon-star"
|
|||
# @cleanup
|
||||
cleanup_bookinfo_sample
|
||||
cleanup_sleep_sample
|
||||
echo y | istioctl x uninstall --revision=default
|
||||
echo y | istioctl uninstall --revision=default
|
||||
kubectl delete ns istio-system
|
||||
|
|
|
@ -20,7 +20,7 @@ set -o pipefail
|
|||
|
||||
# @setup profile=none
|
||||
function rebuild() {
|
||||
istioctl x uninstall --purge --skip-confirmation
|
||||
istioctl uninstall --purge --skip-confirmation
|
||||
kubectl delete namespace istio-ingress
|
||||
istioctl install --skip-confirmation --set profile=minimal
|
||||
}
|
||||
|
@ -62,6 +62,6 @@ _verify_like snip_canary_upgrade_advanced_2 "${snip_canary_upgrade_advanced_2_ou
|
|||
|
||||
# @cleanup
|
||||
|
||||
istioctl x uninstall --purge --skip-confirmation
|
||||
istioctl uninstall --purge --skip-confirmation
|
||||
kubectl delete namespace istio-system
|
||||
kubectl delete namespace istio-ingress
|
|
@ -86,14 +86,14 @@ function cleanup
|
|||
# cleanup_cluster1 removes the istio-system and sample namespaces on CLUSTER1.
|
||||
function cleanup_cluster1
|
||||
{
|
||||
echo y | istioctl x uninstall --revision=default --context="${CTX_CLUSTER1}"
|
||||
echo y | istioctl uninstall --revision=default --context="${CTX_CLUSTER1}"
|
||||
kubectl delete ns istio-system sample --context="${CTX_CLUSTER1}" --ignore-not-found
|
||||
}
|
||||
|
||||
# cleanup_cluster2 removes the istio-system and sample namespaces on CLUSTER2.
|
||||
function cleanup_cluster2
|
||||
{
|
||||
echo y | istioctl x uninstall --revision=default --context="${CTX_CLUSTER2}"
|
||||
echo y | istioctl uninstall --revision=default --context="${CTX_CLUSTER2}"
|
||||
kubectl delete ns istio-system sample --context="${CTX_CLUSTER2}" --ignore-not-found
|
||||
}
|
||||
|
||||
|
|
|
@ -158,13 +158,13 @@ $ istioctl tag set default --revision 1-10-0
|
|||
After upgrading both the control plane and data plane, you can uninstall the old control plane. For example, the following command uninstalls a control plane of revision `1-6-5`:
|
||||
|
||||
{{< text bash >}}
|
||||
$ istioctl x uninstall --revision 1-6-5
|
||||
$ istioctl uninstall --revision 1-6-5 -y
|
||||
{{< /text >}}
|
||||
|
||||
If the old control plane does not have a revision label, uninstall it using its original installation options, for example:
|
||||
|
||||
{{< text bash >}}
|
||||
$ istioctl x uninstall -f manifests/profiles/default.yaml
|
||||
$ istioctl uninstall -f manifests/profiles/default.yaml -y
|
||||
{{< /text >}}
|
||||
|
||||
Confirm that the old control plane has been removed and only the new one still exists in the cluster:
|
||||
|
@ -180,7 +180,7 @@ Note that the above instructions only removed the resources for the specified co
|
|||
## Uninstall canary control plane
|
||||
|
||||
If you decide to rollback to the old control plane, instead of completing the canary upgrade,
|
||||
you can uninstall the canary revision using `istioctl x uninstall --revision=canary`.
|
||||
you can uninstall the canary revision using `istioctl uninstall --revision=canary`.
|
||||
|
||||
However, in this case you must first reinstall the gateway(s) for the previous revision manually,
|
||||
because the uninstall command will not automatically revert the previously in-place upgraded ones.
|
||||
|
|
|
@ -46,6 +46,6 @@ cleanup_bookinfo_sample
|
|||
_undeploy_addons jaeger
|
||||
kubectl delete telemetries.telemetry.istio.io -n istio-system mesh-default
|
||||
snip_cleanup_3
|
||||
istioctl x uninstall -r opencensusagent --skip-confirmation
|
||||
istioctl uninstall -r opencensusagent --skip-confirmation
|
||||
kubectl label namespace default istio-injection-
|
||||
kubectl delete ns istio-system
|
|
@ -70,5 +70,5 @@ _verify_same snip_cleanup_2 "$snip_cleanup_2_out"
|
|||
_verify_same snip_cleanup_3 "$snip_cleanup_3_out"
|
||||
|
||||
_undeploy_addons kiali prometheus grafana zipkin
|
||||
echo y | istioctl x uninstall --revision=default
|
||||
echo y | istioctl uninstall --revision=default
|
||||
kubectl delete ns istio-system
|
||||
|
|
|
@ -69,5 +69,5 @@ cleanup_bookinfo_sample
|
|||
# Clean up Istio. NOTE: Don't wipe out CRDs as doing
|
||||
# so would take a lot of time for the test to finish
|
||||
# TODO: find out why?
|
||||
echo y | istioctl x uninstall --revision=default
|
||||
echo y | istioctl uninstall --revision=default
|
||||
kubectl delete ns istio-system
|
||||
|
|
|
@ -176,7 +176,7 @@ as the old trust domain without you having to include the aliases.
|
|||
$ kubectl delete authorizationpolicy service-httpbin.default.svc.cluster.local
|
||||
$ kubectl delete deploy httpbin; kubectl delete service httpbin; kubectl delete serviceaccount httpbin
|
||||
$ kubectl delete deploy sleep; kubectl delete service sleep; kubectl delete serviceaccount sleep
|
||||
$ istioctl x uninstall --purge
|
||||
$ istioctl uninstall --purge -y
|
||||
$ kubectl delete namespace sleep-allow istio-system
|
||||
$ rm ./td-installation.yaml
|
||||
{{< /text >}}
|
||||
|
|
|
@ -138,7 +138,7 @@ snip_clean_up_1() {
|
|||
kubectl delete authorizationpolicy service-httpbin.default.svc.cluster.local
|
||||
kubectl delete deploy httpbin; kubectl delete service httpbin; kubectl delete serviceaccount httpbin
|
||||
kubectl delete deploy sleep; kubectl delete service sleep; kubectl delete serviceaccount sleep
|
||||
istioctl x uninstall --purge
|
||||
istioctl uninstall --purge -y
|
||||
kubectl delete namespace sleep-allow istio-system
|
||||
rm ./td-installation.yaml
|
||||
}
|
||||
|
|
|
@ -40,5 +40,5 @@ _verify_contains snip_check_the_tls_configuration_of_istio_workloads_3 "$snip_ch
|
|||
_verify_contains snip_check_the_tls_configuration_of_istio_workloads_5 "$snip_check_the_tls_configuration_of_istio_workloads_6"
|
||||
|
||||
# @cleanup
|
||||
echo y | istioctl x uninstall --revision=default
|
||||
echo y | istioctl uninstall --revision=default
|
||||
snip_cleanup_1
|
||||
|
|
|
@ -81,6 +81,6 @@ kubectl exec "$SOURCE_POD" -c sleep -- curl -sS -v http://httpbin.org/headers
|
|||
# @cleanup
|
||||
snip_cleanup_the_controlled_access_to_external_services_1
|
||||
snip_cleanup_1
|
||||
echo y | istioctl x uninstall --revision=default
|
||||
echo y | istioctl uninstall --revision=default
|
||||
kubectl delete ns istio-system
|
||||
kubectl label namespace default istio-injection-
|
||||
|
|
|
@ -253,5 +253,5 @@ $ kubectl delete destinationrule egressgateway-for-wikipedia
|
|||
* Uninstall Istio from your cluster:
|
||||
|
||||
{{< text bash >}}
|
||||
$ istioctl x uninstall --purge
|
||||
$ istioctl uninstall --purge -y
|
||||
{{< /text >}}
|
||||
|
|
|
@ -178,5 +178,5 @@ kubectl delete -f samples/sleep/sleep.yaml
|
|||
}
|
||||
|
||||
snip_cleanup_2() {
|
||||
istioctl x uninstall --purge
|
||||
istioctl uninstall --purge -y
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue