istio.io/istio@v0.0.0-20240520182934-d79c90f27776/tests/testdata/config/rule-route-via-egressgateway.yaml (about) 1 apiVersion: networking.istio.io/v1alpha3 2 kind: VirtualService 3 metadata: 4 name: route-via-egressgateway 5 namespace: testns 6 spec: 7 hosts: 8 - egressgateway.bookinfo.com 9 gateways: 10 # Pinned to both the sidecars (mesh) and egress gateway 11 - istio-egressgateway 12 - mesh 13 http: 14 - match: 15 - gateways: 16 - mesh # from sidecars, route to egress gateway service 17 route: 18 - destination: 19 host: istio-egressgateway 20 weight: 100 21 - match: 22 - gateways: # from egress gateway, route to actual external service 23 # for testing purposes, we route to service t 24 - istio-egressgateway 25 route: 26 - destination: 27 host: eu.bookinfo.com 28 weight: 100