diff --git a/pkg/agent/netpol/netpol.go b/pkg/agent/netpol/netpol.go index fdd7b29713..6df0e727ce 100644 --- a/pkg/agent/netpol/netpol.go +++ b/pkg/agent/netpol/netpol.go @@ -76,6 +76,10 @@ func Run(ctx context.Context, nodeConfig *config.Node) error { if err != nil { return err } + + // Initialize all healthcheck timers. Otherwise, the system reports incorrect heartbeat missing messages + hc.SetAlive() + wg.Add(1) go hc.RunCheck(healthCh, stopCh, &wg)