Chapter 33: Service Mesh — Istio, Envoy, and gRPC

What a Service Mesh Does for gRPC

Envoy as gRPC Proxy

Envoy natively understands gRPC (HTTP/2 + trailers). It can:

Istio + gRPC

# VirtualService for gRPC traffic splitting:
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
spec:
  http:
  - match:
    - headers:
        content-type: {exact: "application/grpc"}
    route:
    - destination: {host: my-service, subset: v2}
      weight: 10
    - destination: {host: my-service, subset: v1}
      weight: 90