istio.io/istio@v0.0.0-20240520182934-d79c90f27776/pilot/pkg/xds/testdata/benchmarks/tcp.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: 7070 11 name: tcp 12 protocol: TCP 13 resolution: STATIC 14 location: MESH_INTERNAL 15 endpoints: 16 - address: 1.1.1.1 17 labels: 18 security.istio.io/tlsMode: istio 19 --- 20 # Set up .Services number of services. 21 {{- range $i := until .Services }} 22 apiVersion: networking.istio.io/v1alpha3 23 kind: ServiceEntry 24 metadata: 25 name: service-{{$i}} 26 spec: 27 addresses: 28 - 240.240.{{div $i 255 }}.{{mod $i 255 }} 29 hosts: 30 - random-{{$i}}.host.example 31 ports: 32 - number: 7070 33 name: tcp 34 protocol: TCP 35 resolution: STATIC 36 location: MESH_INTERNAL 37 endpoints: 38 - address: 240.241.{{div $i 255 }}.{{mod $i 255 }} 39 labels: 40 security.istio.io/tlsMode: istio 41 --- 42 {{- end }}