Hi,
I was wondering if there is a way to attach custom labels to a router or a service. In particular, when I go to /api/http/routers I see all of my routers. As an example here's one:
{
"entryPoints": [
"http"
],
"middlewares": [
"path-strip@docker"
],
"service": "fooar",
"rule": "PathPrefix(`/foobar`)",
"status": "enabled",
"using": [
"http"
],
"name": "foobar@docker",
"provider": "docker"
}
But what I'd like is to have some way to label certain routers with metadata (keys & values) so that I can identify services. For example, I'm wondering if I can attach some docker label to my docker service in order to add some kind of field to the above router like:
{
...
"custom_labels": {
"uses_gpu": true,
"language": "en"
}
...
}
Thanks in advance for any information!