The Kubernetes provider wasn't setting priorities which was causing shorter paths to get chosen before longer ones. This now matches the [documentation](https://github.com/containous/traefik/blob/master/docs/basics.md#priorities)
18 lines
628 B
Cheetah
18 lines
628 B
Cheetah
[backends]{{range $backendName, $backend := .Backends}}
|
|
{{range $serverName, $server := $backend.Servers}}
|
|
[backends."{{$backendName}}".servers."{{$serverName}}"]
|
|
url = "{{$server.URL}}"
|
|
weight = {{$server.Weight}}
|
|
{{end}}
|
|
{{end}}
|
|
|
|
[frontends]{{range $frontendName, $frontend := .Frontends}}
|
|
[frontends."{{$frontendName}}"]
|
|
backend = "{{$frontend.Backend}}"
|
|
priority = {{$frontend.Priority}}
|
|
passHostHeader = {{$frontend.PassHostHeader}}
|
|
{{range $routeName, $route := $frontend.Routes}}
|
|
[frontends."{{$frontendName}}".routes."{{$routeName}}"]
|
|
rule = "{{$route.Rule}}"
|
|
{{end}}
|
|
{{end}}
|