sigs.k8s.io/gateway-api@v1.0.0/examples/standard/http-rewrite.yaml (about)

     1  apiVersion: gateway.networking.k8s.io/v1beta1
     2  kind: HTTPRoute
     3  metadata:
     4    name: http-filter-1
     5    namespace: gateway-api-example-ns1
     6  spec:
     7    parentRefs:
     8    - name: my-filter-gateway
     9      sectionName: http
    10    hostnames:
    11    - my-filter.example.com
    12    rules:
    13    - filters:
    14      - type: URLRewrite
    15        urlRewrite:
    16          path:
    17            type: ReplaceFullPath
    18            replaceFullPath: /foo