istio.io/istio@v0.0.0-20240520182934-d79c90f27776/pilot/pkg/config/kube/gateway/testdata/weighted.yaml.golden (about)

     1  apiVersion: networking.istio.io/v1alpha3
     2  kind: Gateway
     3  metadata:
     4    annotations:
     5      internal.istio.io/gateway-semantics: gateway
     6      internal.istio.io/gateway-service: istio-ingressgateway.istio-system.svc.domain.suffix
     7      internal.istio.io/parents: Gateway/gateway/http.istio-system
     8    creationTimestamp: null
     9    name: gateway-istio-autogenerated-k8s-gateway-http
    10    namespace: istio-system
    11  spec:
    12    servers:
    13    - hosts:
    14      - '*/*.domain.example'
    15      port:
    16        name: default
    17        number: 80
    18        protocol: HTTP
    19  ---
    20  apiVersion: networking.istio.io/v1alpha3
    21  kind: Gateway
    22  metadata:
    23    annotations:
    24      internal.istio.io/gateway-semantics: gateway
    25      internal.istio.io/gateway-service: istio-ingressgateway.istio-system.svc.domain.suffix
    26      internal.istio.io/parents: Gateway/gateway/tcp.istio-system
    27    creationTimestamp: null
    28    name: gateway-istio-autogenerated-k8s-gateway-tcp
    29    namespace: istio-system
    30  spec:
    31    servers:
    32    - hosts:
    33      - '*/*'
    34      port:
    35        name: default
    36        number: 34000
    37        protocol: TCP
    38  ---
    39  apiVersion: networking.istio.io/v1alpha3
    40  kind: VirtualService
    41  metadata:
    42    annotations:
    43      internal.istio.io/parents: HTTPRoute/http.default
    44      internal.istio.io/route-semantics: gateway
    45    creationTimestamp: null
    46    name: http-0-istio-autogenerated-k8s-gateway
    47    namespace: default
    48  spec:
    49    gateways:
    50    - istio-system/gateway-istio-autogenerated-k8s-gateway-http
    51    hosts:
    52    - first.domain.example
    53    http:
    54    - match:
    55      - uri:
    56          prefix: /weighted-100
    57      name: default.http.1
    58      route:
    59      - destination:
    60          host: foo-svc.default.svc.domain.suffix
    61          port:
    62            number: 8000
    63        headers:
    64          request:
    65            add:
    66              foo: bar
    67          response:
    68            add:
    69              response: header
    70    - match:
    71      - uri:
    72          prefix: /get
    73      name: default.http.0
    74      route:
    75      - destination:
    76          host: httpbin.default.svc.domain.suffix
    77          port:
    78            number: 80
    79        weight: 2
    80      - destination:
    81          host: httpbin-other.default.svc.domain.suffix
    82          port:
    83            number: 8080
    84        weight: 3
    85  ---
    86  apiVersion: networking.istio.io/v1alpha3
    87  kind: VirtualService
    88  metadata:
    89    annotations:
    90      internal.istio.io/parents: TCPRoute/tcp.default
    91      internal.istio.io/route-semantics: gateway
    92    creationTimestamp: null
    93    name: tcp-tcp-0-istio-autogenerated-k8s-gateway
    94    namespace: default
    95  spec:
    96    gateways:
    97    - istio-system/gateway-istio-autogenerated-k8s-gateway-tcp
    98    hosts:
    99    - '*'
   100    tcp:
   101    - route:
   102      - destination:
   103          host: httpbin.default.svc.domain.suffix
   104          port:
   105            number: 9090
   106        weight: 1
   107      - destination:
   108          host: httpbin-alt.default.svc.domain.suffix
   109          port:
   110            number: 9090
   111        weight: 2
   112  ---