From 5049cd4d3541ce985afd766a3b616b013678e342 Mon Sep 17 00:00:00 2001 From: Tim Ramlot <42113979+inteon@users.noreply.github.com> Date: Wed, 27 Sep 2023 11:20:48 +0200 Subject: [PATCH] increase maxClockSkew to 5 minutes, just to be safe Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com> --- pkg/healthz/clock_health.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/healthz/clock_health.go b/pkg/healthz/clock_health.go index e7cae61e9..d4ecbf234 100644 --- a/pkg/healthz/clock_health.go +++ b/pkg/healthz/clock_health.go @@ -24,7 +24,7 @@ import ( "k8s.io/utils/clock" ) -const maxClockSkew = 1 * time.Minute +const maxClockSkew = 5 * time.Minute // The clockHealthAdaptor implements the HealthChecker interface. // It checks the system clock is in sync with the internal monotonic clock. @@ -41,7 +41,7 @@ const maxClockSkew = 1 * time.Minute // -> the monotonic clock will stop, but the system clock will continue // -> this eg. happens when you pause a VM/ hibernate a laptop // -// Small clock skews of < 1m are allowed, because they can happen when the system clock is +// Small clock skews of < 5m are allowed, because they can happen when the system clock is // adjusted. However, we do compound the clock skew over time, so that if the clock skew // is small but constant, it will eventually fail the health check. type clockHealthAdaptor struct {