Replies: 2 comments
-
Hi @ssube
We don't support cross-namespace routing yet. This means HTTPRoute cannot talk to backends in different namespaces. This will be fixed #477 This means if you have a Gateway in one namespace (let's say Based on the status you provided, you got this condition reported:
This means that Gateway was ignored. Currently, NGINX Kubernetes Gateway supports only one Gateway resource
This makes me think if the real issue here is this limitation. I wonder if it is possible in your case to use a single Gateway resource. |
Beta Was this translation helpful? Give feedback.
-
RefernceGrant support was implemented. |
Beta Was this translation helpful? Give feedback.
-
Does the nginx gateway have any support for cross-namespace routing today, or where is that on the roadmap?
I'm hoping to use the nginx gateway in a staging environment with many services, some micro and some macro.
Each service has at least one namespace, for the default branch, and feature branches are deployed to their
own namespaces with their own configs, deployments, services, etc.
We have the gateway itself up and running, and the advanced routing example is working correctly, but it only
works with routes in the default namespace. When I try to apply HTTPRoutes to other namespaces, we are getting
a few different errors from the gateway pod or in the route resource's events, which seem to indicate that
cross-namespace routing is not supported yet.
In https://github.com/nginxinc/nginx-kubernetes-gateway/blob/main/docs/gateway-api-compatibility.md#gateway,
the
allowedRoutes
field is marked as not supported, so that all makes sense. It seems like there is alsoa hard-coded check to make sure backend refs are in the same namespace as their routes: https://github.com/nginxinc/nginx-kubernetes-gateway/blob/1cc1b12c40ea56df47adf49610b8539988d0e374/internal/state/graph/backend_refs.go#L165
I see a few issues that seem to be related:
Based on the gateway spec, it sounds like this usage should be supported in theory, but there are a lot
of grants that will need to be checked.
Since this is our main use case, I'm trying to figure out what the current state is, if there's anything
we can do to make the current version work, or if we should be contributing some patches.
Beta Was this translation helpful? Give feedback.
All reactions