Search code examples
traefiktraefik-ingress

How to get kubernetes service name instead of 'traefik' pod's IP


It is hard to check if request is reached the service or not, because we get RouterName like namespace-ingressroute_name-some_random_string@kubernatescrd and ServiceName like namespace-ingressroute_name-some_random_string instead of pod service name.

Is there any way I can print pod service name instead of that RouterName and ServiceName in logs?


Solution

  • i found a solution for that we can use traefik service for that. which is introduce in traefik version 2.0