add explict instructions to enable autoinject in ns (#1746)

This commit is contained in:
Rocky Shang 2018-07-18 00:40:18 +08:00 committed by Frank Budinsky
parent b4ed6f2823
commit a05a9fc28e
1 changed files with 12 additions and 1 deletions

View File

@ -83,8 +83,19 @@ To start the application, follow the instructions below corresponding to your Is
* If you are using a cluster with
[automatic sidecar injection](/docs/setup/kubernetes/sidecar-injection/#automatic-sidecar-injection)
enabled, simply deploy the services using `kubectl`
enabled, label the `default` namespace with `istio-injection=enabled`
{{< text bash >}}
$ kubectl label namespace default istio-injection=enabled
$ kubectl get namespace -L istio-injection
NAME STATUS AGE ISTIO-INJECTION
default Active 1h enabled
istio-system Active 1h
kube-public Active 1h
kube-system Active 1h
{{< /text >}}
Then simply deploy the services using `kubectl`
{{< text bash >}}
$ kubectl apply -f @samples/bookinfo/platform/kube/bookinfo.yaml@
{{< /text >}}