Serving: Routing to HTTP/1.1 and GRPC services

Created on 13 Mar 2019  路  2Comments  路  Source: knative/serving

In what area(s)?

/area networking

Ask your question here:

I'm not sure I should post these questions here or istio ... I post here first.

According to knative-routing-go sample configuration, we can create an istio custom resource VirtualService to forward to real service.
But how can I make it route to, for example, one HTTP/1.1 service and many GRPC services ?
Further, how can I distinguish A GRPC service between B GRPC service, just like HTTP/1.1 headers or URI? What's the suggestion here? Thanks.

arenetworking kinquestion

Most helpful comment

I will try gRPC case, and see how it works.

All 2 comments

I will try gRPC case, and see how it works.

You can dispatch to different GRPC services using path-based matches.

e.g. https://github.com/mattmoor/korpc-sample/blob/19b4bafb02e709d8fb4702d22c0b7adb655d3c8d/gen/config/gateway.yaml#L64

Was this page helpful?
0 / 5 - 0 ratings

Related issues

maxiloEmmmm picture maxiloEmmmm  路  4Comments

mattmoor picture mattmoor  路  7Comments

tcnghia picture tcnghia  路  3Comments

ahmetb picture ahmetb  路  5Comments

josephburnett picture josephburnett  路  6Comments