I am trying to switch to Kubernetes Gateway api from IngressRoute. I have 2 IngressRoutes pointing to the same hostname, one for http traffic and one for grpc (h2c) traffic - this worked by setting the match, priority and scheme:
HTTP: match: Host(
instance.localhost)
+ priority 10
GRPC: match: Host(
instance.localhost) && Header(
Content-Type,
application/grpc)
+ priority 11
Switching to Gateway api I use a HTTPRoute and a GRPCRoute both set to the same hostname, but his results in a
Content-Type is missing from the request
When trying to access the hostname from a browser?
In the dashboard the gateway api routes are identical:
Is it possible to have both http and grpc route on same hostname using gateway api?