sigs.k8s.io/gateway-api@v1.0.0/conformance/tests/httproute-matching-across-routes.yaml (about)

     1  apiVersion: gateway.networking.k8s.io/v1
     2  kind: HTTPRoute
     3  metadata:
     4    name: matching-part1
     5    namespace: gateway-conformance-infra
     6  spec:
     7    parentRefs:
     8    - name: same-namespace
     9    hostnames:
    10    - example.com
    11    - example.net
    12    rules:
    13    - matches:
    14      - path:
    15          type: PathPrefix
    16          value: /
    17      - headers:
    18        - name: version
    19          value: one
    20      backendRefs:
    21      - name: infra-backend-v1
    22        port: 8080
    23  ---
    24  apiVersion: gateway.networking.k8s.io/v1
    25  kind: HTTPRoute
    26  metadata:
    27    name: matching-part2
    28    namespace: gateway-conformance-infra
    29  spec:
    30    hostnames:
    31    - example.com
    32    parentRefs:
    33    - name: same-namespace
    34    rules:
    35    - matches:
    36      - path:
    37          type: PathPrefix
    38          value: /v2
    39      - headers:
    40        - name: version
    41          value: two
    42      backendRefs:
    43      - name: infra-backend-v2
    44        port: 8080