...
1apiVersion: gateway.networking.k8s.io/v1
2kind: HTTPRoute
3metadata:
4 name: redirect-host-and-status
5 namespace: gateway-conformance-infra
6spec:
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
View as plain text