zh:update proxy-cmd (#2625)

* update proxy-cmd,

* clean spaces
This commit is contained in:
fish 2018-09-16 17:07:23 +08:00 committed by istio-bot
parent 478ead2555
commit eb10860cff
1 changed files with 11 additions and 1 deletions

View File

@ -232,7 +232,7 @@ istio-egressgateway.istio-system.svc.cluster.local
1. 此集群配置为从 Pilot通过 ADS检索关联的端点。因此Envoy 将使用 `serviceName` 字段作为密钥来查找端点列表并将请求代理到其中一个端点。
{{< text bash json >}}
$ istioctl proxy-config clusters --fqdn reviews.default.svc.cluster.local -o json
$ istioctl proxy-config clusters productpage-v1-6c886ff494-7vxhs --fqdn reviews.default.svc.cluster.local -o json
[
{
"name": "outbound|9080||reviews.default.svc.cluster.local",
@ -253,6 +253,16 @@ istio-egressgateway.istio-system.svc.cluster.local
]
{{< /text >}}
1. 可以使用 `proxy-config` 命令查看当前集群中可用的 endpoints。
{{< text bash json >}}
$ istioctl proxy-config endpoints productpage-v1-6c886ff494-7vxhs --cluster outbound|9080||reviews.default.svc.cluster.local
ENDPOINT STATUS CLUSTER
172.17.0.17:9080 HEALTHY outbound|9080||reviews.default.svc.cluster.local
172.17.0.18:9080 HEALTHY outbound|9080||reviews.default.svc.cluster.local
172.17.0.5:9080 HEALTHY outbound|9080||reviews.default.svc.cluster.local
{{< /text >}}
## 检查 Bootstrap 配置
到目前为止,我们已经查看了(主要)从 Pilot 检索到的配置,但是 Envoy 需要一些引导程序配置,其中包含可以找到 Pilot 的信息。要查看此内容,请使用以下命令: