mirror of
https://github.com/traefik/traefik
synced 2026-02-03 13:30:32 +00:00
rework loadbalancer support
This commit is contained in:
committed by
Traefiker Bot
parent
b143101f82
commit
518a37e776
@@ -39,11 +39,9 @@ func TestHandler_Configuration(t *testing.T) {
|
||||
LoadBalancer: &config.LoadBalancerService{
|
||||
Servers: []config.Server{
|
||||
{
|
||||
URL: "http://127.0.0.1",
|
||||
Weight: 1,
|
||||
URL: "http://127.0.0.1",
|
||||
},
|
||||
},
|
||||
Method: "wrr",
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -96,10 +94,8 @@ func TestHandler_Configuration(t *testing.T) {
|
||||
Servers: []config.TCPServer{
|
||||
{
|
||||
Address: "127.0.0.1",
|
||||
Weight: 1,
|
||||
},
|
||||
},
|
||||
Method: "wrr",
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Vendored
+3
-7
@@ -57,11 +57,9 @@
|
||||
"loadbalancer": {
|
||||
"servers": [
|
||||
{
|
||||
"url": "http://127.0.0.1",
|
||||
"weight": 1
|
||||
"url": "http://127.0.0.1"
|
||||
}
|
||||
],
|
||||
"method": "wrr",
|
||||
"passHostHeader": false
|
||||
},
|
||||
"usedBy": [
|
||||
@@ -91,11 +89,9 @@
|
||||
"loadbalancer": {
|
||||
"servers": [
|
||||
{
|
||||
"address": "127.0.0.1",
|
||||
"weight": 1
|
||||
"address": "127.0.0.1"
|
||||
}
|
||||
],
|
||||
"method": "wrr"
|
||||
]
|
||||
},
|
||||
"usedBy": [
|
||||
"myprovider.tcpbar",
|
||||
|
||||
Reference in New Issue
Block a user