istio.io/istio@v0.0.0-20240520182934-d79c90f27776/pilot/pkg/xds/testdata/benchmarks/gateways-shared.yaml (about) 1 # Set up a Service associated with our proxy, which will run as 1.1.1.1 IP 2 apiVersion: networking.istio.io/v1alpha3 3 kind: ServiceEntry 4 metadata: 5 name: proxy-service-instance 6 spec: 7 hosts: 8 - example.com 9 ports: 10 - number: 80 11 name: http 12 protocol: HTTP 13 - number: 443 14 name: https 15 protocol: HTTPS 16 resolution: STATIC 17 endpoints: 18 - address: 1.1.1.1 19 labels: 20 istio.io/benchmark: "true" 21 --- 22 apiVersion: networking.istio.io/v1alpha3 23 kind: Gateway 24 metadata: 25 name: gateway 26 namespace: gateway 27 spec: 28 selector: 29 istio.io/benchmark: "true" 30 servers: 31 - port: 32 number: 80 33 name: http 34 protocol: HTTP 35 hosts: 36 - random-1.host.example 37 - random-2.host.example 38 - random-3.host.example 39 - port: 40 number: 443 41 name: https 42 protocol: HTTPS 43 hosts: 44 - random-1.host.example 45 - random-2.host.example 46 - random-3.host.example 47 tls: 48 mode: ISTIO_MUTUAL 49 --- 50 {{- range $i := until .Services }} 51 apiVersion: networking.istio.io/v1alpha3 52 kind: VirtualService 53 metadata: 54 name: vs-{{$i}} 55 namespace: gateway 56 spec: 57 hosts: 58 - random-1.host.example 59 - random-2.host.example 60 - random-3.host.example 61 gateways: 62 - gateway/gateway 63 http: 64 - match: 65 - uri: 66 prefix: "/route-a-{{$i}}" 67 - uri: 68 prefix: "/route-b-{{$i}}" 69 - uri: 70 prefix: "/route-c-{{$i}}" 71 - uri: 72 prefix: "/route-d-{{$i}}" 73 - uri: 74 prefix: "/route-e-{{$i}}" 75 - uri: 76 prefix: "/route-f-{{$i}}" 77 route: 78 - destination: 79 host: random-{{$i}}.host.example 80 --- 81 apiVersion: networking.istio.io/v1alpha3 82 kind: ServiceEntry 83 metadata: 84 name: service-{{$i}} 85 spec: 86 hosts: 87 - random-{{$i}}.host.example 88 ports: 89 - number: 80 90 name: http 91 protocol: HTTP 92 resolution: STATIC 93 endpoints: 94 - address: 1.2.3.4 95 --- 96 {{- end }}