mirror of
https://github.com/traefik/traefik.git
synced 2025-11-29 14:41:15 +01:00
Launch healhcheck only one time instead of two
This commit is contained in:
parent
d71e8ab7c9
commit
1e7f34c271
@ -109,8 +109,6 @@ func (m *Manager) BuildHandlers(rootCtx context.Context, entryPoints []string, t
|
|||||||
entryPointHandlers[entryPointName] = handlerWithMiddlewares
|
entryPointHandlers[entryPointName] = handlerWithMiddlewares
|
||||||
}
|
}
|
||||||
|
|
||||||
m.serviceManager.LaunchHealthCheck()
|
|
||||||
|
|
||||||
return entryPointHandlers
|
return entryPointHandlers
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -58,6 +58,8 @@ func (f *TCPRouterFactory) CreateTCPRouters(conf dynamic.Configuration) map[stri
|
|||||||
handlersNonTLS := routerManager.BuildHandlers(ctx, f.entryPoints, false)
|
handlersNonTLS := routerManager.BuildHandlers(ctx, f.entryPoints, false)
|
||||||
handlersTLS := routerManager.BuildHandlers(ctx, f.entryPoints, true)
|
handlersTLS := routerManager.BuildHandlers(ctx, f.entryPoints, true)
|
||||||
|
|
||||||
|
serviceManager.LaunchHealthCheck()
|
||||||
|
|
||||||
// TCP
|
// TCP
|
||||||
svcTCPManager := tcp.NewManager(rtConf)
|
svcTCPManager := tcp.NewManager(rtConf)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user