From 4a8902590c6c5fc1dc5f2a83f34d9bacdb155e85 Mon Sep 17 00:00:00 2001 From: Christian Rohmann Date: Mon, 12 Aug 2024 17:42:55 +0200 Subject: [PATCH] Increase readiness and liveness probe timeouts, introduce an initial delay Currently the default timeout of 1 second and no initial delay is applied to the probes of the runner pods. Depending on the startup time this can cause random Pod errors causing a whole TestRun to fail. At some point it might also make sense to introduce a startupProbe to cover the longer initial startup time a K6 instance (Pod) might need instead of every increasing the runtime liveness and readiness checks. Fixes #306 Signed-off-by: Christian Rohmann --- pkg/resources/jobs/runner.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/resources/jobs/runner.go b/pkg/resources/jobs/runner.go index 54105401..80df742f 100644 --- a/pkg/resources/jobs/runner.go +++ b/pkg/resources/jobs/runner.go @@ -281,6 +281,8 @@ func generateProbe(configuredProbe *corev1.Probe) *corev1.Probe { return configuredProbe } return &corev1.Probe{ + InitialDelaySeconds: 10, + TimeoutSeconds: 3, ProbeHandler: corev1.ProbeHandler{ HTTPGet: &corev1.HTTPGetAction{ Path: "/v1/status",