Routers Definition in Kubernetes
A router is in charge of connecting incoming requests to the services that can handle them. To customize the connection, Traefik Hub API Gateway allows you to define your matching rules and prioritize the routes.
In the process, routers may use middlewares to update the request, or act before forwarding the request to the service.
Kubernetes provides the Ingress
objects that allow exposing the Kubernetes service.
Traefik Hub API Gateway provides annotations to customize the Ingress
objects.
The Ingress objects are limited and force using annotations.
For such a reason, Traefik Hub API Gateway provides IngressRoute
that eases the configuration.
Even if you can use Ingress and Service objects, we recommend to use the IngressRoute
to expose your APIs through Traefik Hub API Gateway.
📄️ Rules and Priorities
Rules and priorities allow defining how to route the incoming request to the expected services
📄️ IngressRoute
A IngressRoute is a Traefik Hub API Gateway CRD is in charge of connecting incoming requests to the Services that can handle them in HTTP.
📄️ Ingress Annotations
An Ingress object is in charge of connecting incoming requests to the Services that can handle them in HTTP.