diff --git a/content/en/docs/setup/upgrade/canary/index.md b/content/en/docs/setup/upgrade/canary/index.md index 766fe1f33b..4a6cfad945 100644 --- a/content/en/docs/setup/upgrade/canary/index.md +++ b/content/en/docs/setup/upgrade/canary/index.md @@ -92,21 +92,21 @@ Create a namespace `test-ns` with `istio-injection` enabled. In the `test-ns` na 1. Create a namespace `test-ns`. -{{< text bash >}} -$ kubectl create ns test-ns -{{< /text >}} + {{< text bash >}} + $ kubectl create ns test-ns + {{< /text >}} 1. Label the namespace using `istio-injection` label. -{{< text bash >}} -$ kubectl label namespace test-ns istio-injection=enabled -{{< /text >}} + {{< text bash >}} + $ kubectl label namespace test-ns istio-injection=enabled + {{< /text >}} 1. Bring up a sample sleep pod in `test-ns` namespace. -{{< text bash >}} -$ kubectl apply -n test-ns -f samples/sleep/sleep.yaml -{{< /text >}} + {{< text bash >}} + $ kubectl apply -n test-ns -f samples/sleep/sleep.yaml + {{< /text >}} To upgrade the namespace `test-ns`, remove the `istio-injection` label, and add the `istio.io/rev` label to point to the `canary` revision. The `istio-injection` label must be removed because it takes precedence over the `istio.io/rev` label for backward compatibility.