mirror of https://github.com/istio/istio.io.git
Fix indentations in canary upgrade (#13905)
This commit is contained in:
parent
e13162ec0e
commit
d7dcb95ef2
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in New Issue