1
0
Fork 0

Entry point redirection and default routers configuration

Co-authored-by: Julien Salleyron <julien.salleyron@gmail.com>
Co-authored-by: Mathieu Lonjaret <mathieu.lonjaret@gmail.com>
This commit is contained in:
Traefiker Bot 2020-03-05 12:46:05 +01:00 committed by GitHub
parent 93a7af270f
commit a6040c623b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
46 changed files with 1016 additions and 126 deletions

View file

@ -76,7 +76,7 @@ func (s *DockerComposeSuite) TestComposeScale(c *check.C) {
// check that we have only one service (not counting the internal ones) with n servers
services := rtconf.Services
c.Assert(services, checker.HasLen, 3)
c.Assert(services, checker.HasLen, 4)
for name, service := range services {
if strings.HasSuffix(name, "@internal") {
continue

View file

@ -165,6 +165,9 @@
},
"status": "enabled"
},
"noop@internal": {
"status": "enabled"
},
"simplesvc@consul": {
"loadBalancer": {
"servers": [

View file

@ -98,10 +98,10 @@
"loadBalancer": {
"servers": [
{
"url": "http://10.42.0.3:80"
"url": "http://10.42.0.2:80"
},
{
"url": "http://10.42.0.5:80"
"url": "http://10.42.0.3:80"
}
],
"passHostHeader": true
@ -111,18 +111,18 @@
"default-test-route-6b204d94623b3df4370c@kubernetescrd"
],
"serverStatus": {
"http://10.42.0.3:80": "UP",
"http://10.42.0.5:80": "UP"
"http://10.42.0.2:80": "UP",
"http://10.42.0.3:80": "UP"
}
},
"default-test2-route-23c7f4c450289ee29016@kubernetescrd": {
"loadBalancer": {
"servers": [
{
"url": "http://10.42.0.3:80"
"url": "http://10.42.0.2:80"
},
{
"url": "http://10.42.0.5:80"
"url": "http://10.42.0.3:80"
}
],
"passHostHeader": true
@ -132,26 +132,26 @@
"default-test2-route-23c7f4c450289ee29016@kubernetescrd"
],
"serverStatus": {
"http://10.42.0.3:80": "UP",
"http://10.42.0.5:80": "UP"
"http://10.42.0.2:80": "UP",
"http://10.42.0.3:80": "UP"
}
},
"default-whoami-80@kubernetescrd": {
"loadBalancer": {
"servers": [
{
"url": "http://10.42.0.3:80"
"url": "http://10.42.0.2:80"
},
{
"url": "http://10.42.0.5:80"
"url": "http://10.42.0.3:80"
}
],
"passHostHeader": true
},
"status": "enabled",
"serverStatus": {
"http://10.42.0.3:80": "UP",
"http://10.42.0.5:80": "UP"
"http://10.42.0.2:80": "UP",
"http://10.42.0.3:80": "UP"
}
},
"default-wrr1@kubernetescrd": {
@ -171,6 +171,9 @@
"usedBy": [
"default-test3-route-7d0ac22d3d8db4b82618@kubernetescrd"
]
},
"noop@internal": {
"status": "enabled"
}
},
"tcpRouters": {
@ -199,7 +202,7 @@
"address": "10.42.0.4:8080"
},
{
"address": "10.42.0.6:8080"
"address": "10.42.0.8:8080"
}
]
},
@ -226,10 +229,10 @@
"loadBalancer": {
"servers": [
{
"address": "10.42.0.4:8090"
"address": "10.42.0.10:8090"
},
{
"address": "10.42.0.6:8090"
"address": "10.42.0.9:8090"
}
]
},

View file

@ -165,6 +165,9 @@
},
"status": "enabled"
},
"noop@internal": {
"status": "enabled"
},
"simplesvc@etcd": {
"loadBalancer": {
"servers": [

View file

@ -29,6 +29,10 @@
]
},
"test-ingress-default-whoami-test-whoami@kubernetes": {
"entryPoints": [
"web",
"traefik"
],
"service": "default-whoami-http",
"rule": "Host(`whoami.test`) \u0026\u0026 PathPrefix(`/whoami`)",
"status": "enabled",
@ -38,6 +42,10 @@
]
},
"test-ingress-https-default-whoami-test-https-whoami@kubernetes": {
"entryPoints": [
"web",
"traefik"
],
"service": "default-whoami-http",
"rule": "Host(`whoami.test.https`) \u0026\u0026 PathPrefix(`/whoami`)",
"tls": {},
@ -107,6 +115,9 @@
"http://10.42.0.3:80": "UP",
"http://10.42.0.5:80": "UP"
}
},
"noop@internal": {
"status": "enabled"
}
}
}

View file

@ -165,6 +165,9 @@
},
"status": "enabled"
},
"noop@internal": {
"status": "enabled"
},
"simplesvc@redis": {
"loadBalancer": {
"servers": [

View file

@ -165,6 +165,9 @@
},
"status": "enabled"
},
"noop@internal": {
"status": "enabled"
},
"simplesvc@zookeeper": {
"loadBalancer": {
"servers": [