From 2ed2123fc08248adc0c6b59cf915611b387edc38 Mon Sep 17 00:00:00 2001 From: bluepuma77 Date: Wed, 23 Jul 2025 11:40:04 +0200 Subject: [PATCH] Add constraints key limitations for label providers --- .../reference/install-configuration/providers/docker.md | 4 ++++ .../providers/hashicorp/consul-catalog.md | 4 ++++ .../install-configuration/providers/hashicorp/nomad.md | 4 ++++ .../reference/install-configuration/providers/others/ecs.md | 4 ++++ .../reference/install-configuration/providers/swarm.md | 4 ++++ 5 files changed, 20 insertions(+) diff --git a/docs/content/reference/install-configuration/providers/docker.md b/docs/content/reference/install-configuration/providers/docker.md index 82463e8fc..579223889 100644 --- a/docs/content/reference/install-configuration/providers/docker.md +++ b/docs/content/reference/install-configuration/providers/docker.md @@ -270,6 +270,10 @@ created. If the expression is empty, all detected containers are included. The expression syntax is based on the `Label("key", "value")`, and `LabelRegex("key", "value")` functions, as well as the usual boolean logic, as shown in examples below. +!!! tip "Constraints key limitations" + + Note that `traefik.*` is a reserved label namespace for configuration and can not be used as a key for custom constraints. + ??? example "Constraints Expression Examples" ```toml diff --git a/docs/content/reference/install-configuration/providers/hashicorp/consul-catalog.md b/docs/content/reference/install-configuration/providers/hashicorp/consul-catalog.md index 975c0685d..dce7a3627 100644 --- a/docs/content/reference/install-configuration/providers/hashicorp/consul-catalog.md +++ b/docs/content/reference/install-configuration/providers/hashicorp/consul-catalog.md @@ -112,6 +112,10 @@ created. If the expression is empty, all detected services are included. The expression syntax is based on the ```Tag(`tag`)```, and ```TagRegex(`tag`)``` functions, as well as the usual boolean logic, as shown in examples below. +!!! tip "Constraints key limitations" + + Note that `traefik.*` is a reserved label namespace for configuration and can not be used as a key for custom constraints. + ??? example "Constraints Expression Examples" ```toml diff --git a/docs/content/reference/install-configuration/providers/hashicorp/nomad.md b/docs/content/reference/install-configuration/providers/hashicorp/nomad.md index 19608cd94..bb2ac3a39 100644 --- a/docs/content/reference/install-configuration/providers/hashicorp/nomad.md +++ b/docs/content/reference/install-configuration/providers/hashicorp/nomad.md @@ -191,6 +191,10 @@ created. If the expression is empty, all detected services are included. The expression syntax is based on the ```Tag(`tag`)```, and ```TagRegex(`tag`)``` functions, as well as the usual boolean logic, as shown in examples below. +!!! tip "Constraints key limitations" + + Note that `traefik.*` is a reserved label namespace for configuration and can not be used as a key for custom constraints. + ??? example "Constraints Expression Examples" ```toml diff --git a/docs/content/reference/install-configuration/providers/others/ecs.md b/docs/content/reference/install-configuration/providers/others/ecs.md index f6aeb2731..7f50032ef 100644 --- a/docs/content/reference/install-configuration/providers/others/ecs.md +++ b/docs/content/reference/install-configuration/providers/others/ecs.md @@ -49,6 +49,10 @@ If the expression is empty, all detected containers are included. The expression syntax is based on the `Label("key", "value")`, and `LabelRegex("key", "value")` functions, as well as the usual boolean logic, as shown in examples below. +!!! tip "Constraints key limitations" + + Note that `traefik.*` is a reserved label namespace for configuration and can not be used as a key for custom constraints. + ??? example "Constraints Expression Examples" ```toml diff --git a/docs/content/reference/install-configuration/providers/swarm.md b/docs/content/reference/install-configuration/providers/swarm.md index 64d058a87..96ec463c5 100644 --- a/docs/content/reference/install-configuration/providers/swarm.md +++ b/docs/content/reference/install-configuration/providers/swarm.md @@ -276,6 +276,10 @@ created. If the expression is empty, all detected containers are included. The expression syntax is based on the `Label("key", "value")`, and `LabelRegex("key", "value")` functions, as well as the usual boolean logic, as shown in examples below. +!!! tip "Constraints key limitations" + + Note that `traefik.*` is a reserved label namespace for configuration and can not be used as a key for custom constraints. + ??? example "Constraints Expression Examples" ```toml