1
0
mirror of https://github.com/containous/traefik.git synced 2024-12-27 03:21:40 +03:00
traefik/integration/fixtures/udp/wrr.toml
mpl 115d42e0f0
UDP support
Co-authored-by: Julien Salleyron <julien.salleyron@gmail.com>
2020-02-11 01:26:04 +01:00

54 lines
1.2 KiB
TOML

[global]
checkNewVersion = false
sendAnonymousUsage = false
[log]
level = "DEBUG"
[entryPoints]
[entryPoints.udp]
address = ":8093/udp"
[entryPoints.web]
address = ":8093"
[api]
insecure = true
[providers.file]
filename = "{{ .SelfFilename }}"
## dynamic configuration ##
[udp]
[udp.routers]
[udp.routers.to-whoami-a]
service = "whoami"
entryPoints = [ "udp" ]
[[udp.services.whoami.weighted.services]]
name="whoami-a"
weight=3
[[udp.services.whoami.weighted.services]]
name="whoami-b"
weight=1
[udp.services.whoami-a.loadBalancer]
[[udp.services.whoami-a.loadBalancer.servers]]
address = "{{ .WhoamiAIP}}:8080"
[[udp.services.whoami-a.loadBalancer.servers]]
address = "{{ .WhoamiCIP}}:8080"
[udp.services.whoami-b.loadBalancer]
[[udp.services.whoami-b.loadBalancer.servers]]
address = "{{ .WhoamiBIP}}:8080"
[http]
[http.routers]
[http.routers.to-whoami-d]
service = "whoami"
entryPoints = [ "web" ]
rule = "PathPrefix(`/who`)"
[http.services.whoami.loadBalancer]
[[http.services.whoami.loadBalancer.servers]]
url = "http://{{ .WhoamiDIP}}"