HttpRoutes in different namespace #4850
-
Hello, Following this: https://gateway-api.sigs.k8s.io/guides/multiple-ns/ we have enabled a selector and labels that will allow httproutes from namespace B to attach to a gateway on namespace A. So we have put such settings in place like this:
...along with:
And yet a httproute that we create in namespace=current, pointing to a service in the same namespace, fails to work. Our question is, are we missing something, or is this a feature that EG is not currently supporting? As a work-around we have defined the exact same httproute on the same namespace as the gateway (test namespace), and it works fine. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
can you also share the HTTPRoutes ? |
Beta Was this translation helpful? Give feedback.
-
This is what they have to look like in order to work. With the arrow we are showing the salient point.
|
Beta Was this translation helpful? Give feedback.
you also need to set the
namespace
of theGateway
in theparentRefs
sectionhttps://gateway-api.sigs.k8s.io/reference/spec/#gateway.networking.k8s.io/v1.CommonRouteSpec
by default it infers to the namespace of the
HTTPRoute
which is not what you want