Fix indentations in canary upgrade (#13905)

This commit is contained in:
Michael 2023-09-20 21:24:05 +08:00 committed by GitHub
parent e13162ec0e
commit d7dcb95ef2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 9 deletions

View File

@ -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.