istio.io/istio@v0.0.0-20240520182934-d79c90f27776/pilot/pkg/xds/testdata/benchmarks/telemetry-api.yaml (about)

     1  apiVersion: telemetry.istio.io/v1alpha1
     2  kind: Telemetry
     3  metadata:
     4    name: telemetry
     5    namespace: istio-system
     6  spec:
     7    metrics:
     8    - providers:
     9      - name: prometheus
    10    accessLogging:
    11    - providers:
    12        - name: envoy-json
    13  ---
    14  # Set up a Service associated with our proxy, which will run as 1.1.1.1 IP
    15  apiVersion: networking.istio.io/v1alpha3
    16  kind: ServiceEntry
    17  metadata:
    18    name: proxy-service-instance
    19  spec:
    20    hosts:
    21    - example.com
    22    ports:
    23    - number: 80
    24      name: http
    25      protocol: HTTP
    26    - number: 7070
    27      name: tcp
    28      protocol: TCP
    29    - number: 443
    30      name: https
    31      protocol: HTTPS
    32    - number: 9090
    33      name: auto
    34      protocol: ""
    35    resolution: STATIC
    36    endpoints:
    37    - address: 1.1.1.1
    38  ---
    39  # Set up .Services number of services. Each will have 4 ports (one for each protocol)
    40    {{- range $i := until .Services }}
    41  apiVersion: networking.istio.io/v1alpha3
    42  kind: ServiceEntry
    43  metadata:
    44    name: service-{{$i}}
    45  spec:
    46    hosts:
    47    - random-{{$i}}.host.example
    48    ports:
    49    - number: 80
    50      name: http
    51      protocol: HTTP
    52    - number: 7070
    53      name: tcp
    54      protocol: TCP
    55    - number: 443
    56      name: https
    57      protocol: HTTPS
    58    - number: 9090
    59      name: auto
    60    resolution: STATIC
    61    endpoints:
    62    - address: 1.2.3.4
    63  ---
    64  {{- end }}