mirror of https://github.com/istio/istio.io.git
zh-translation:/boilerplates/start-httpbin-service.md (#5674)
* translate docs * translate docs * translate docs
This commit is contained in:
parent
cd3d577e17
commit
aabdd85a34
|
@ -1,14 +1,14 @@
|
||||||
---
|
---
|
||||||
---
|
---
|
||||||
* Start the [httpbin]({{< github_tree >}}/samples/httpbin) sample.
|
* 启动 [httpbin]\({{< github_tree >}}/samples/httpbin) 样例程序。
|
||||||
|
|
||||||
If you have enabled [automatic sidecar injection](/docs/setup/additional-setup/sidecar-injection/#automatic-sidecar-injection), deploy the `httpbin` service:
|
如果您启用了 [sidecar 自动注入](/zh/docs/setup/additional-setup/sidecar-injection/#automatic-sidecar-injection),通过以下命令部署 `httpbin` 服务:
|
||||||
|
|
||||||
{{< text bash >}}
|
{{< text bash >}}
|
||||||
$ kubectl apply -f @samples/httpbin/httpbin.yaml@
|
$ kubectl apply -f @samples/httpbin/httpbin.yaml@
|
||||||
{{< /text >}}
|
{{< /text >}}
|
||||||
|
|
||||||
Otherwise, you have to manually inject the sidecar before deploying the `httpbin` application:
|
否则,您必须在部署 `httpbin` 应用程序前进行手动注入,部署命令如下:
|
||||||
|
|
||||||
{{< text bash >}}
|
{{< text bash >}}
|
||||||
$ kubectl apply -f <(istioctl kube-inject -f @samples/httpbin/httpbin.yaml@)
|
$ kubectl apply -f <(istioctl kube-inject -f @samples/httpbin/httpbin.yaml@)
|
||||||
|
|
Loading…
Reference in New Issue