[英]ISTIO GRPC Gateway configuration
我正在嘗試使用 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
還有什么我應該做的嗎? 我仍然無法通過網關 go... 查詢服務端點時收到錯誤消息。
謝謝!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.