Port based routing in Istio with GRPC service on GKE Not Working

3/20/2019

We are running GRPC services on Google Kubernetes Engine with Istio. We have done following setup for the request routing which is not working.

We are receiving following error while making GRPC call to service : upstream connect error or disconnect/reset before headers

Please let me know if there is missing something or there is workaround.

apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
  name: helloworld-gateway
spec:
  selector:
    istio: ingressgateway # use istio default controller
  servers:
  - port:
      number: 50051
      name: grpc
      protocol: GRPC
    hosts:
    - "*"
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
  name: helloworld
spec:
  hosts:
  - "*"
  gateways:
  - helloworld-gateway
  http:
  - match:
    - port: 50051
    route:
    - destination:
        host: helloworld
        port:
          number: 50051
-- SIdd
google-kubernetes-engine
grpc
istio

0 Answers