istio.io/istio@v0.0.0-20240520182934-d79c90f27776/pilot/pkg/xds/testdata/benchmarks/externalname.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    resolution: STATIC
    14    location: MESH_INTERNAL
    15    endpoints:
    16      - address: 1.1.1.1
    17        labels:
    18          security.istio.io/tlsMode: istio
    19  {{- range $i := until .Services }}
    20  ---
    21  apiVersion: v1
    22  kind: Service
    23  metadata:
    24    name: service-{{$i}}
    25  spec:
    26    type: ExternalName
    27    externalName: random-{{$i}}.example.com
    28    ports:
    29      - port: 80
    30        name: http
    31  {{- end }}