Traefik & KV Stores
A Story of key & values
Routing Configuration
Keys
- Keys are case insensitive.
- The complete list of keys can be found in the reference page.
Routers
The character @
is not authorized in the router name
.
traefik/http/routers/
See rule for more information.
Key (Path) | Value |
---|---|
traefik/http/routers/myrouter/rule | Host( |
traefik/http/routers/
See entry points for more information.
Key (Path) | Value |
---|---|
traefik.http.routers.myrouter.entrypoints/0 | web |
traefik.http.routers.myrouter.entrypoints/1 | websecure |
traefik/http/routers/
See middlewares and middlewares overview for more information.
Key (Path) | Value |
---|---|
traefik/http/routers/myrouter/middlewares/0 | auth |
traefik/http/routers/myrouter/middlewares/1 | prefix |
traefik/http/routers/myrouter/middlewares/2 | cb |
traefik/http/routers/
See rule for more information.
Key (Path) | Value |
---|---|
traefik/http/routers/myrouter/service | myservice |
traefik/http/routers/
See tls for more information.
Key (Path) | Value |
---|---|
traefik/http/routers/myrouter/tls | true |
traefik/http/routers/
See certResolver for more information.
Key (Path) | Value |
---|---|
traefik/http/routers/myrouter/tls/certresolver | myresolver |
traefik/http/routers/
See domains for more information.
Key (Path) | Value |
---|---|
traefik/http/routers/myrouter/tls/domains/0/main | example.org |
traefik/http/routers/
See domains for more information.
Key (Path) | Value |
---|---|
traefik/http/routers/myrouter/tls/domains/0/sans/0 | test.example.org |
traefik/http/routers/myrouter/tls/domains/0/sans/1 | dev.example.org |
traefik/http/routers/
See options for more information.
Key (Path) | Value |
---|---|
traefik/http/routers/myrouter/tls/options | foobar |
traefik/http/routers/
See priority for more information.
Key (Path) | Value |
---|---|
traefik/http/routers/myrouter/priority | 42 |
Services
The character @
is not authorized in the service name
.
traefik/http/services/
See servers for more information.
Key (Path) | Value |
---|---|
traefik/http/services/myservice/loadbalancer/servers/0/scheme | http |
traefik/http/services/
Overrides the default scheme.
Key (Path) | Value |
---|---|
traefik/http/services/myservice/loadbalancer/servers/0/scheme | http |
traefik/http/services/
See pass Host header for more information.
Key (Path) | Value |
---|---|
traefik/http/services/myservice/loadbalancer/passhostheader | true |
traefik/http/services/
See health check for more information.
Key (Path) | Value |
---|---|
traefik/http/services/myservice/loadbalancer/healthcheck/headers/X-Foo | foobar |
traefik/http/services/
See health check for more information.
Key (Path) | Value |
---|---|
traefik/http/services/myservice/loadbalancer/healthcheck/hostname | example.org |
traefik/http/services/
See health check for more information.
Key (Path) | Value |
---|---|
traefik/http/services/myservice/loadbalancer/healthcheck/interval | 10 |
traefik/http/services/
See health check for more information.
Key (Path) | Value |
---|---|
traefik/http/services/myservice/loadbalancer/healthcheck/path | /foo |
traefik/http/services/
See health check for more information.
Key (Path) | Value |
---|---|
traefik/http/services/myservice/loadbalancer/healthcheck/port | 42 |
traefik/http/services/
See health check for more information.
Key (Path) | Value |
---|---|
traefik/http/services/myservice/loadbalancer/healthcheck/scheme | http |
traefik/http/services/
See health check for more information.
Key (Path) | Value |
---|---|
traefik/http/services/myservice/loadbalancer/healthcheck/timeout | 10 |
traefik/http/services/
See sticky sessions for more information.
Key (Path) | Value |
---|---|
traefik/http/services/myservice/loadbalancer/sticky | true |
traefik/http/services/
See sticky sessions for more information.
Key (Path) | Value |
---|---|
traefik/http/services/myservice/loadbalancer/sticky/cookie/httponly | true |
traefik/http/services/
See sticky sessions for more information.
Key (Path) | Value |
---|---|
traefik/http/services/myservice/loadbalancer/sticky/cookie/name | foobar |
traefik/http/services/
See sticky sessions for more information.
Key (Path) | Value |
---|---|
traefik/http/services/myservice/loadbalancer/sticky/cookie/secure | true |
traefik/http/services/
See sticky sessions for more information.
Key (Path) | Value |
---|---|
traefik/http/services/myservice/loadbalancer/sticky/cookie/samesite | none |
traefik/http/services/
See response forwarding for more information.
Key (Path) | Value |
---|---|
traefik/http/services/myservice/loadbalancer/responseforwarding/flushinterval | 10 |
traefik/http/services/
Key (Path) | Value |
---|---|
traefik/http/services/ | foobar |
traefik/http/services/
Key (Path) | Value |
---|---|
traefik/http/services/ | foobar |
traefik/http/services/
Key (Path) | Value |
---|---|
traefik/http/services/ | 42 |
traefik/http/services/
Key (Path) | Value |
---|---|
traefik/http/services/ | foobar |
traefik/http/services/
Key (Path) | Value |
---|---|
traefik/http/services/ | 42 |
traefik/http/services/
Key (Path) | Value |
---|---|
traefik/http/services/ | foobar |
traefik/http/services/
Key (Path) | Value |
---|---|
traefik/http/services/ | true |
traefik/http/services/
Key (Path) | Value |
---|---|
traefik/http/services/ | none |
traefik/http/services/
Key (Path) | Value |
---|---|
traefik/http/services/ | true |
Middleware
More information about available middlewares in the dedicated middlewares section.
The character @
is not authorized in the middleware name.
Conflicts in Declaration
If you declare multiple middleware with the same name but with different parameters, the middleware fails to be declared.
TCP
You can declare TCP Routers and/or Services using KV.
TCP Routers
traefik/tcp/routers/
See entry points for more information.
Key (Path) | Value |
---|---|
traefik/tcp/routers/mytcprouter/entrypoints/0 | ep1 |
traefik/tcp/routers/mytcprouter/entrypoints/1 | ep2 |
traefik/tcp/routers/
See rule for more information.
Key (Path) | Value |
---|---|
traefik/tcp/routers/my-router/rule | HostSNI( |
traefik/tcp/routers/
See service for more information.
Key (Path) | Value |
---|---|
traefik/tcp/routers/mytcprouter/service | myservice |
traefik/tcp/routers/
See TLS for more information.
Key (Path) | Value |
---|---|
traefik/tcp/routers/mytcprouter/tls | true |
traefik/tcp/routers/
See certResolver for more information.
Key (Path) | Value |
---|---|
traefik/tcp/routers/mytcprouter/tls/certresolver | myresolver |
traefik/tcp/routers/
See domains for more information.
Key (Path) | Value |
---|---|
traefik/tcp/routers/mytcprouter/tls/domains/0/main | example.org |
traefik/tcp/routers/
See domains for more information.
Key (Path) | Value |
---|---|
traefik/tcp/routers/mytcprouter/tls/domains/0/sans/0 | test.example.org |
traefik/tcp/routers/mytcprouter/tls/domains/0/sans/1 | dev.example.org |
traefik/tcp/routers/
See options for more information.
Key (Path) | Value |
---|---|
traefik/tcp/routers/mytcprouter/tls/options | foobar |
traefik/tcp/routers/
See TLS for more information.
Key (Path) | Value |
---|---|
traefik/tcp/routers/mytcprouter/tls/passthrough | true |
TCP Services
traefik/tcp/services/
See servers for more information.
Key (Path) | Value |
---|---|
traefik/tcp/services/mytcpservice/loadbalancer/servers/0/scheme | http |
traefik/tcp/services/
See termination delay for more information.
Key (Path) | Value |
---|---|
traefik/tcp/services/mytcpservice/loadbalancer/terminationdelay | 100 |
traefik/tcp/services/
Key (Path) | Value |
---|---|
traefik/tcp/services/ | foobar |
traefik/tcp/services/
Key (Path) | Value |
---|---|
traefik/tcp/services/ | 42 |