sigs.k8s.io/gateway-api@v1.0.0/conformance/tests/httproute-redirect-host-and-status.yaml (about) 1 apiVersion: gateway.networking.k8s.io/v1 2 kind: HTTPRoute 3 metadata: 4 name: redirect-host-and-status 5 namespace: gateway-conformance-infra 6 spec: 7 parentRefs: 8 - name: same-namespace 9 rules: 10 - matches: 11 - path: 12 type: PathPrefix 13 value: /hostname-redirect 14 filters: 15 - type: RequestRedirect 16 requestRedirect: 17 hostname: example.org 18 - matches: 19 - path: 20 type: PathPrefix 21 value: /host-and-status 22 filters: 23 - type: RequestRedirect 24 requestRedirect: 25 statusCode: 301 26 hostname: example.org 27