Get service information in the Custom Error middleware

Hi,

I'm running Traefik v2 in Kubernetes, with the custom errors middleware enabled. I'm interested in showing more diagnostic information to my users when their applications generated an error. In particular, Ideally, I'd like to show the namespace, service name and port.

Is there a way to pass this to the custom error? From the docs, its seems like only {status} is available, but I was hoping for something similar to what NGINX-ingress controller does in this scenario.

Hi, I get same problem, do you get solution?
i think you should define a middleware to inject k8s ingress info. then you can access from another middleware access this info.