From 2b4a2f03578ea06c0eec2d86aade3fc1a9fd32d0 Mon Sep 17 00:00:00 2001 From: Markus Rudy Date: Wed, 24 Apr 2024 16:58:02 +0200 Subject: [PATCH] e2e: add ReadinessProbe to emoji-web --- e2e/internal/kuberesource/sets.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/e2e/internal/kuberesource/sets.go b/e2e/internal/kuberesource/sets.go index 579a90af81..4290b8ca58 100644 --- a/e2e/internal/kuberesource/sets.go +++ b/e2e/internal/kuberesource/sets.go @@ -452,6 +452,11 @@ func generateEmojivoto() ([]any, error) { WithEnv(EnvVar().WithName("EDG_DISABLE_CLIENT_AUTH").WithValue("true")). WithResources(ResourceRequirements(). WithMemoryLimitAndRequest(50), + ). + WithReadinessProbe(applycorev1.Probe(). + WithTCPSocket(TCPSocketAction().WithPort(intstr.FromInt(8080))). + WithInitialDelaySeconds(1). + WithPeriodSeconds(5), ), ), ),