istio.io/istio@v0.0.0-20240520182934-d79c90f27776/tests/testdata/config/byon.yaml (about)

     1  # Verify the route can send to an arbitrary service name
     2  apiVersion: networking.istio.io/v1alpha3
     3  kind: ServiceEntry
     4  metadata:
     5    name: byon
     6    namespace: testns
     7  spec:
     8     hosts:
     9     - byon.test.istio.io
    10     ports:
    11     - number: 80
    12       name: http
    13       protocol: HTTP
    14     resolution: STATIC
    15     endpoints:
    16      - address: 127.0.0.2
    17        ports:
    18          http: 7072
    19  ---
    20  apiVersion: networking.istio.io/v1alpha3
    21  kind: VirtualService
    22  metadata:
    23    name: byon
    24    namespace: testns
    25  spec:
    26    hosts:
    27      - mybyon.test.istio.io
    28    http:
    29      - route:
    30        - destination:
    31            host: byon.test.istio.io
    32  
    33  ---
    34  ## VM running docker ( see deb/run/docker )
    35  apiVersion: networking.istio.io/v1alpha3
    36  kind: ServiceEntry
    37  metadata:
    38    name: byon-docker
    39    namespace: testns
    40  spec:
    41     hosts:
    42     - byon-docker.test.istio.io
    43     ports:
    44     - number: 7072
    45       name: http
    46       protocol: HTTP
    47     resolution: STATIC
    48     endpoints:
    49      - address: 172.18.0.3
    50        ports:
    51          http: 7072
    52  ---
    53  apiVersion: networking.istio.io/v1alpha3
    54  kind: ServiceEntry
    55  metadata:
    56    name: wikipedia-range
    57    namespace: testns
    58  spec:
    59    hosts:
    60    - www.wikipedia.org
    61    addresses:
    62      - 91.198.174.192/27
    63      - 103.102.166.224/27
    64      - 198.35.26.96/27
    65      - 208.80.153.224/27
    66      - 208.80.154.224/27
    67    ports:
    68      - number: 443
    69        protocol: TCP
    70        name: tcp-port
    71    resolution: NONE