diff --git a/lib/service/discovery.go b/lib/service/discovery.go index 99738862b9780..845c9edbc4de2 100644 --- a/lib/service/discovery.go +++ b/lib/service/discovery.go @@ -128,6 +128,11 @@ func (process *TeleportProcess) initDiscoveryService() error { } logger.InfoContext(process.ExitContext(), "Discovery service has successfully started") + // The Discovery service doesn't have heartbeats so we cannot use them to check health. + // For now, we just mark ourselves ready all the time on startup. + // If we don't, a process only running the Discovery service will never report ready. + process.OnHeartbeat(teleport.ComponentDiscovery)(nil) + if err := discoveryService.Wait(); err != nil { return trace.Wrap(err) }