We have a backend application that serves gRPC and HTTP traffic on the same port 8080 internally.
TLS termination is on Gateway level.
We are on Istio 1.2.7 for now.
Please advise how to configure VirtualService and Service to serve the routing for both.
Currently Virtual service is redirecting to 8080 to the Service with the following specs for ports
spec: ports: - name: grpc-myapp port: 8080 protocol: TCP targetPort: 8080
If name is prefixed here with grpc (like:
name: grpc-myapp) gRPC traffic works, but http is not accepted.
If we are changing it to prefix http (like:
name: http-myapp) HTTP traffic work, but gRPC is not accepted.
Not sure how to make a configuration to serve both of them at the same time