sigs.k8s.io/gateway-api@v1.0.0/examples/standard/simple-http-https/foo-route.yaml (about)

     1  apiVersion: gateway.networking.k8s.io/v1beta1
     2  kind: HTTPRoute
     3  metadata:
     4    name: foo 
     5  spec:
     6    parentRefs:
     7    - name: example-gateway
     8      sectionName: https
     9    hostnames:
    10    - foo.example.com
    11    rules:
    12    - matches:
    13      - path:
    14          type: PathPrefix
    15          value: /
    16      backendRefs:
    17      - name: foo-app 
    18        port: 80
    19    - matches:
    20      - path:
    21          type: PathPrefix
    22          value: /orders
    23      backendRefs:
    24      - name: foo-orders-app 
    25        port: 80