[zh] sync docs concepts/traffic-management/index.md (#12942)

* [zh] sync test docs to [zh]

Signed-off-by: xing.wu <xing.wu@daocloud.io>

* [zh] Sync docs content/zh/docs/concepts/traffic-management/index.md

Signed-off-by: xing.wu <xing.wu@daocloud.io>

* [zh] Sync docs content/zh/docs/concepts/traffic-management/index.md

Signed-off-by: xing.wu <xing.wu@daocloud.io>

* [zh] Sync dock content/zh/docs/concepts/traffic-management/index.md

Signed-off-by: xing.wu <xing.wu@daocloud.io>

---------

Signed-off-by: xing.wu <xing.wu@daocloud.io>
This commit is contained in:
gssjl2008 2023-03-26 18:03:57 +08:00 committed by GitHub
parent b7edbe078f
commit f44dcd46fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 10 deletions

View File

@ -173,14 +173,6 @@ spec:
route:
- destination:
host: ratings
...
http:
- match:
sourceLabels:
app: reviews
route:
...
{{< /text >}}
有些匹配条件可以使用精确的值,如前缀或正则。
@ -295,8 +287,7 @@ spec:
- ext-host.example.com
tls:
mode: SIMPLE
serverCertificate: /tmp/tls.crt
privateKey: /tmp/tls.key
credentialName: ext-host-cert
{{< /text >}}
这个网关配置让 HTTPS 流量从 `ext-host.example.com` 通过 443 端口流入网格,但没有为请求指定任何路由规则。要指定路由并让网关按预期工作,您必须把网关绑定到虚拟服务上。正如下面的示例所示,使用虚拟服务的 `gateways` 字段进行设置: