From e8b08cd056fd827b276587e44eec95ebc0ba11e6 Mon Sep 17 00:00:00 2001 From: Akihiro Suda Date: Wed, 14 Feb 2024 19:37:13 +0900 Subject: [PATCH] e2e_node: replace `registry.k8s.io/stress:v1` with agnhost agnhost now contains the stress functionality (PR 123258). Fix issue 123146 Signed-off-by: Akihiro Suda --- test/e2e_node/eviction_test.go | 4 ++-- test/e2e_node/image_list.go | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/test/e2e_node/eviction_test.go b/test/e2e_node/eviction_test.go index d4d11496104..97aac9ab4f4 100644 --- a/test/e2e_node/eviction_test.go +++ b/test/e2e_node/eviction_test.go @@ -1077,13 +1077,13 @@ func getMemhogPod(podName string, ctnName string, res v1.ResourceRequirements) * Containers: []v1.Container{ { Name: ctnName, - Image: "registry.k8s.io/stress:v1", + Image: imageutils.GetE2EImage(imageutils.Agnhost), ImagePullPolicy: "Always", Env: env, // 60 min timeout * 60s / tick per 10s = 360 ticks before timeout => ~11.11Mi/tick // to fill ~4Gi of memory, so initial ballpark 12Mi/tick. // We might see flakes due to timeout if the total memory on the nodes increases. - Args: []string{"-mem-alloc-size", "12Mi", "-mem-alloc-sleep", "10s", "-mem-total", memLimit}, + Args: []string{"stress", "--mem-alloc-size", "12Mi", "--mem-alloc-sleep", "10s", "--mem-total", memLimit}, Resources: res, }, }, diff --git a/test/e2e_node/image_list.go b/test/e2e_node/image_list.go index 75af8189723..4db3ada785f 100644 --- a/test/e2e_node/image_list.go +++ b/test/e2e_node/image_list.go @@ -53,7 +53,6 @@ const ( var NodePrePullImageList = sets.NewString( imageutils.GetE2EImage(imageutils.Agnhost), "gcr.io/cadvisor/cadvisor:v0.47.2", - "registry.k8s.io/stress:v1", busyboxImage, "registry.k8s.io/e2e-test-images/busybox@sha256:a9155b13325b2abef48e71de77bb8ac015412a566829f621d06bfae5c699b1b9", imageutils.GetE2EImage(imageutils.Nginx),