grpc - ISTIO GRPC 网关配置
问题描述
我正在尝试使用 GRPC 设置 ISTIO 网关。我使用的示例来自:https ://github.com/h3poteto/istio-grpc-example 。
此示例不包含网关。我添加了网关:
kind: Gateway
metadata:
name: my-gateway
namespace: istio-grpc-example
spec:
selector:
istio: ingressgateway
servers:
- port:
number: 80
name: grpc-wildcard
protocol: GRPC
hosts:
- "*"
并修改了 VirtualService:
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: backend
namespace: istio-grpc-example
spec:
hosts:
- "backend"
gateways:
- my-gateway
http:
- match:
- port: 50051
route:
- destination:
host: backend
subset: v0
weight: 90
- destination:
host: backend
subset: v1
weight: 10
还有什么我应该做的吗?我仍然无法通过网关...查询服务端点时收到错误。
谢谢!
解决方案
推荐阅读
- html - Bootstrap 导航栏附加项目而不是切换它们
- typescript - 在 Mac 上用于 Word 的旁加载 Typescript/React Office 加载项
- typescript - 如何为多个包创建通用声明文件?
- printing - 在 blazor webassembly 中没有任何对话框或提示的情况下,我有哪些打印选项
- javascript - 类型错误:无法读取未定义的属性“包含”
- python - 当我的播放器类与我的平台类之一发生冲突时,如何制作和结束屏幕?
- excel - 将 Worksheet_Change 限制为指定的单元格范围
- database - 地址表中的城市和邮编是否违反 BCNF
- wordpress - 如何在备份中查找帖子和页面
- node.js - 打字稿的dotenv环境变量问题