istio.io/istio@v0.0.0-20240520182934-d79c90f27776/tests/testdata/config/rule-content-route.yaml (about) 1 # Split traffic using header 2 # Will use c-weighted endpoint 3 apiVersion: networking.istio.io/v1alpha3 4 kind: VirtualService 5 metadata: 6 name: headers-route 7 namespace: testns 8 spec: 9 hosts: 10 - headers.test.istio.io 11 http: 12 - match: 13 - headers: 14 version: 15 exact: v2 16 sourceLabels: 17 version: v1 18 route: 19 - destination: 20 host: c-weighted.extsvc.com 21 subset: v2 22 weight: 100 23 - route: 24 - destination: 25 host: c-weighted.extsvc.com 26 subset: v1 27 weight: 100