Skip to content

Commit

Permalink
fix:修复envoy gateway的使用指南的文档描述问题 (#340)
Browse files Browse the repository at this point in the history
  • Loading branch information
chuntaojun authored May 17, 2023
1 parent 430359f commit ddf4016
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions content/zh-cn/docs/使用指南/网关/使用envoy.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ dynamic_resources:
{{< note >}}
- 当前推荐 envoy 版本为 **envoyproxy/envoy-contrib:v1.21.4**
- 必须在北极星创建 envoy gateway 的服务,其服务名为 ${node.metadata.gateway_service}, 所在命名空间为 ${node.metadata.gateway_namespace}
- 必须在北极星创建 **envoy gateway** 的服务,其服务名为 ${node.metadata.gateway_service}, 所在命名空间为 ${node.metadata.gateway_namespace}
{{< /note >}}
Expand All @@ -68,6 +68,11 @@ dynamic_resources:
- 路由到 service-b
- 添加 1: http path 为 /api/v1/service-b
{{< note >}}
- Envoy Gateway 的路由规则中,请求匹配条件必须包含 **路径**,否则路由规则无法转为 Envoy Gateway 所需的 XDS 进行下发
{{< /note >}}
那么需要按照下列步骤准备
> 准备 Envoy 启动配置
Expand Down Expand Up @@ -193,11 +198,11 @@ curl http://127.0.0.1:15000/config_dump
> 请求验证
```bash
curl http://127.0.0.1:15000/api/v1/service-a
curl http://127.0.0.1:15001/api/v1/service-a

# 期望输出:I'm service-a

curl http://127.0.0.1:15000/api/v1/service-b
curl http://127.0.0.1:15001/api/v1/service-b

# 期望输出:I'm service-b
```
Expand Down

0 comments on commit ddf4016

Please sign in to comment.