Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Dynamic Routing by Envoy + Istio

Yuki Ito
January 08, 2020

Dynamic Routing by Envoy + Istio

Yuki Ito

January 08, 2020
Tweet

More Decks by Yuki Ito

Other Decks in Technology

Transcript

  1. Architecture API Gateway VirtualService microservice A Service Pod PR 3

    Service Pod PR 2 Service Pod PR 1 JWT microservice-A: PR-1
  2. Custom HTTP Filter { "microservice-A": "PR-1", "microservice-B": "PR-2" } microservice-A:

    PR-1 microservice-B: PR-2 Request from APP Request to Upstream JWT Payload HTTP Header ɾɾɾ ɾɾɾ
  3. Custom HTTP Filter EnvoyFilter spec: workloadLabels: mercari.com/service-router: enabled filters: -

    listenerMatch: listenerType: SIDECAR_OUTBOUND listenerProtocol: HTTP filterName: envoy.lua filterType: HTTP filterConfig: inlineCode: | ...
  4. Routing via VirtualService VirtualService http: - match: - headers: microservice-A:

    exact: "PR-1" route: - destination: host: pr-1.microservice-a.svc.cluster.local ...