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

     1  apiVersion: gateway.networking.k8s.io/v1beta1
     2  kind: GatewayClass
     3  metadata:
     4    name: istio
     5  spec:
     6    controllerName: istio.io/gateway-controller
     7  ---
     8  apiVersion: gateway.networking.k8s.io/v1beta1
     9  kind: Gateway
    10  metadata:
    11    name: gateway
    12    namespace: istio-system
    13  spec:
    14    addresses:
    15    - value: istio-ingressgateway
    16      type: Hostname
    17    gatewayClassName: istio
    18    listeners:
    19    - name: apple
    20      hostname: "apple.example"
    21      port: 80
    22      protocol: HTTP
    23      allowedRoutes:
    24        namespaces:
    25          from: Selector
    26          selector:
    27            matchLabels:
    28              kubernetes.io/metadata.name: apple
    29    - name: banana
    30      hostname: "banana.example"
    31      port: 80
    32      protocol: HTTP
    33      allowedRoutes:
    34        namespaces:
    35          from: Selector
    36          selector:
    37            matchLabels:
    38              kubernetes.io/metadata.name: banana
    39  ---
    40  apiVersion: gateway.networking.k8s.io/v1beta1
    41  kind: HTTPRoute
    42  metadata:
    43    name: http
    44    namespace: apple
    45  spec:
    46    parentRefs:
    47    - name: gateway
    48      namespace: istio-system
    49    rules:
    50    - backendRefs:
    51      - name: httpbin-apple
    52        port: 80
    53  ---
    54  apiVersion: gateway.networking.k8s.io/v1beta1
    55  kind: HTTPRoute
    56  metadata:
    57    name: http
    58    namespace: banana
    59  spec:
    60    parentRefs:
    61    - name: gateway
    62      namespace: istio-system
    63    rules:
    64    - backendRefs:
    65      - name: httpbin-banana
    66        port: 80
    67  ---