sigs.k8s.io/gateway-api@v1.0.0/conformance/tests/httproute-redirect-port.yaml (about) 1 apiVersion: gateway.networking.k8s.io/v1 2 kind: HTTPRoute 3 metadata: 4 name: redirect-port 5 namespace: gateway-conformance-infra 6 spec: 7 parentRefs: 8 - name: same-namespace 9 rules: 10 - matches: 11 - path: 12 type: PathPrefix 13 value: /port 14 filters: 15 - type: RequestRedirect 16 requestRedirect: 17 port: 8083 18 - matches: 19 - path: 20 type: PathPrefix 21 value: /port-and-host 22 filters: 23 - type: RequestRedirect 24 requestRedirect: 25 hostname: example.org 26 port: 8083 27 - matches: 28 - path: 29 type: PathPrefix 30 value: /port-and-status 31 filters: 32 - type: RequestRedirect 33 requestRedirect: 34 port: 8083 35 statusCode: 301 36 - matches: 37 - path: 38 type: PathPrefix 39 value: /port-and-host-and-status 40 filters: 41 - type: RequestRedirect 42 requestRedirect: 43 port: 8083 44 hostname: example.org 45 statusCode: 302