Skip to main content

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.