istio.io/istio@v0.0.0-20240520182934-d79c90f27776/tests/testdata/config/rule-redirect-injection.yaml (about) 1 apiVersion: networking.istio.io/v1alpha3 2 kind: ServiceEntry 3 metadata: 4 name: redirect 5 namespace: testns 6 spec: 7 hosts: 8 - redirect.test.istio.io 9 ports: 10 - number: 8080 11 name: http 12 protocol: HTTP 13 resolution: STATIC 14 endpoints: 15 - address: 127.0.0.2 16 ports: 17 http: 8080 18 --- 19 apiVersion: networking.istio.io/v1alpha3 20 kind: VirtualService 21 metadata: 22 name: redirect 23 namespace: testns 24 spec: 25 hosts: 26 - redirect.test.istio.io 27 http: 28 - match: 29 - headers: 30 testredirect: 31 exact: enabled 32 redirect: 33 uri: /new/path 34 authority: redirect2.test.istio.io