istio.io/istio@v0.0.0-20240520182934-d79c90f27776/pilot/pkg/xds/testdata/benchmarks/gateways.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  {{- range $i := until .Services }}
    23  apiVersion: networking.istio.io/v1alpha3
    24  kind: VirtualService
    25  metadata:
    26    name: vs-{{$i}}
    27    namespace: gateway
    28  spec:
    29    hosts:
    30    - random-a-{{$i}}.host.example
    31    - random-b-{{$i}}.host.example
    32    - random-c-{{$i}}.host.example
    33    gateways:
    34    - gateway/gateway-{{$i}}
    35    http:
    36    - match:
    37      - uri:
    38          prefix: "/route-{{$i}}"
    39      route:
    40      - destination:
    41          host: random-{{$i}}.host.example
    42  ---
    43  apiVersion: networking.istio.io/v1alpha3
    44  kind: Gateway
    45  metadata:
    46    name: gateway-{{$i}}
    47    namespace: gateway
    48  spec:
    49    selector:
    50      istio.io/benchmark: "true"
    51    servers:
    52    - port:
    53        number: 80
    54        name: http
    55        protocol: HTTP
    56      hosts:
    57      - random-a-{{$i}}.host.example
    58      - random-b-{{$i}}.host.example
    59      - random-c-{{$i}}.host.example
    60    - port:
    61        number: 443
    62        name: https
    63        protocol: HTTPS
    64      hosts:
    65      - random-a-{{$i}}.host.example
    66      - random-b-{{$i}}.host.example
    67      - random-c-{{$i}}.host.example
    68      tls:
    69        mode: ISTIO_MUTUAL
    70  ---
    71  apiVersion: networking.istio.io/v1alpha3
    72  kind: ServiceEntry
    73  metadata:
    74    name: service-{{$i}}
    75  spec:
    76    hosts:
    77    - random-{{$i}}.host.example
    78    ports:
    79    - number: 80
    80      name: http
    81      protocol: HTTP
    82    resolution: STATIC
    83    endpoints:
    84    - address: 1.2.3.4
    85  ---
    86  {{- end }}