Replies: 2 comments 2 replies
-
One possible solution would be to rely on the fact that exact matches have precedence over prefix matches: gateway-api/apis/v1/httproute_types.go Lines 164 to 173 in 28880c1 In practice that means you could have an exact match for the instance you're migrating (
That will depend on your underlying implementation. |
Beta Was this translation helpful? Give feedback.
-
Would this be a valuable (simple?) extension to the Gateway API, since the alternative is to create a Pod/deployment with an image that just responds with 503?
|
Beta Was this translation helpful? Give feedback.
-
Hi,
I want to use the Gateway API for routing (north-south) with HTTPRoute. The service consists of hundreds of datasets (=postgres database for each dataset), and the url to each dataset use an uuid to identify the dataset, like this:
...
During normal operation, I just route /app/* to my service, of course.
I'm wondering how this will work during an upgrade, because I would like to be able to use a canary-style upgrade where I change the routing to individual datasets to point to the new version for tesing. In case of database schema upgrades, I also want to migrate the datasets one-by-one to avoid downtime on multiple datasets at once.
I guess all the urls need to be typed out individually then, and which service they point to?
How efficient will this be if there are 100 or 1000 urls?
Is there a way to point to no service and get 503 Service Unavailable[1] instead? That would be perfect when migrating the service if database schema migrations that require no user traffic are needed.
[1] https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/503
Beta Was this translation helpful? Give feedback.
All reactions