sigs.k8s.io/gateway-api@v1.0.0/conformance/tests/httproute-path-match-order.yaml (about)

     1  apiVersion: gateway.networking.k8s.io/v1
     2  kind: HTTPRoute
     3  metadata:
     4    name: path-matching-order
     5    namespace: gateway-conformance-infra
     6  spec:
     7    parentRefs:
     8    - name: same-namespace
     9    rules:
    10    - matches:
    11      - path:
    12          type: Exact
    13          value: /match
    14      backendRefs:
    15      - name: infra-backend-v1
    16        port: 8080
    17    - matches:
    18      - path:
    19          type: Exact
    20          value: /match/exact
    21      backendRefs:
    22      - name: infra-backend-v2
    23        port: 8080
    24    - matches:
    25      - path:
    26          type: Exact
    27          value: /match/exact/one
    28      backendRefs:
    29      - name: infra-backend-v3
    30        port: 8080
    31    - matches:
    32      - path:
    33          type: PathPrefix
    34          value: /match/
    35      backendRefs:
    36      - name: infra-backend-v3
    37        port: 8080
    38    - matches:
    39      - path:
    40          type: PathPrefix
    41          value: /match/prefix/
    42      backendRefs:
    43      - name: infra-backend-v1
    44        port: 8080
    45    - matches:
    46      - path:
    47          type: PathPrefix
    48          value: /match/prefix/one
    49      backendRefs:
    50      - name: infra-backend-v2
    51        port: 8080