...

Text file src/sigs.k8s.io/gateway-api/examples/standard/httproute.yaml

Documentation: sigs.k8s.io/gateway-api/examples/standard

     1apiVersion: gateway.networking.k8s.io/v1beta1
     2kind: HTTPRoute
     3metadata:
     4  name: my-app
     5spec:
     6  rules:
     7  - matches:
     8    - path:
     9        type: PathPrefix
    10        value: /mypath
    11    backendRefs:
    12    - name: my-service-1
    13      port: 8080
    14  - matches:
    15    - path:
    16        type: PathPrefix
    17        value: /mypath-012
    18    backendRefs:
    19    - name: my-service-2
    20      port: 8080
    21  - matches:
    22    - path:
    23        type: PathPrefix
    24        value: /my%20path/123
    25    backendRefs:
    26    - name: my-service-3
    27      port: 8080
    28

View as plain text