mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 18:00:08 +00:00
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 <akihiro.suda.cz@hco.ntt.co.jp>
This commit is contained in:
parent
5d861b6f12
commit
e8b08cd056
@ -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,
|
||||
},
|
||||
},
|
||||
|
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user