zh: add content_zh/boilerplates/before-you-begin-egress.md (#3029)

This commit is contained in:
SataQiu 2019-01-04 11:23:42 +08:00 committed by istio-bot
parent bc9c94d05f
commit 3109c6cd5b
1 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,26 @@
## 开始之前
* 按照[安装指南](/zh/docs/setup/)中的说明安装 Istio。
* 启动 [sleep]({{< github_tree >}}/samples/sleep) 示例,以获取发送请求的测试源。
如果您启用了
[自动 sidecar 注入](/zh/docs/setup/kubernetes/sidecar-injection/#sidecar-的自动注入),请执行
{{< text bash >}}
$ kubectl apply -f @samples/sleep/sleep.yaml@
{{< /text >}}
否则,在部署 `sleep` 应用程序前,您必须手动注入 sidecar
{{< text bash >}}
$ kubectl apply -f <(istioctl kube-inject -f @samples/sleep/sleep.yaml@)
{{< /text >}}
您可以使用任何安装了 `curl` 的 pod 作为测试源。
* 为了发送请求,您需要创建 `SOURCE_POD` 环境变量来存储源 pod 的名称:
{{< text bash >}}
$ export SOURCE_POD=$(kubectl get pod -l app=sleep -o jsonpath={.items..metadata.name})
{{< /text >}}