Merge pull request #119670 from lengrongfu/fix/oomkill-multi-target-container

fix OOM killer
This commit is contained in:
Kubernetes Prow Robot 2023-08-15 19:43:40 -07:00 committed by GitHub
commit 3111fee8bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -179,7 +179,7 @@ func getOOMTargetContainerMultiProcess(name string) v1.Container {
"sh",
"-c",
// use the dd tool to attempt to allocate 20M in a block which exceeds the limit
"dd if=/dev/zero of=/dev/null bs=20M & sleep 86400",
"sleep 5 && dd if=/dev/zero of=/dev/null bs=20M & sleep 86400",
},
Resources: v1.ResourceRequirements{
Requests: v1.ResourceList{