I run baremetal kubenet cluster setup and install the gateway api and http route, i need to redirect the traffic. Is the deployment correct or not ? thanks
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: nginx-redictre
namespace: nginx
spec:
parentRefs:
- name: main
hostnames:
- "service1.gateway"
rules:
- matches:
- path:
type: PathPrefix
value: /service1
backendRefs:
- name: service1
port: 80
- matches:
- path:
type: PathPrefix
value: /servcice2
backendRefs:
- name: service2
port: 80
- matches:
- path:
type: PathPrefix
value: /service3
headers:
- type: Exact
name: user-agent
value: rd-desk
backendRefs:
- name:/service2
port: 80
- matches:
- path:
type: PathPrefix
value: /service4
backendRefs:
- name:/service2
port: 80