Only restartChecks if pod is master
@@ -182,10 +182,12 @@ func configReloader(ctx context.Context, kh *Kuberhealthy) {
log.SetLevel(parsedLogLevel)
}
+ if isMaster {
// reload checks
kh.RestartChecks(ctx)
log.Infoln("configReloader: Kuberhealthy restarted!")
}
+ }
log.Infoln("configReloader: shutting down because no more signals are coming from outChan")
}
