mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-21 09:34:40 +00:00
Merge pull request #119670 from lengrongfu/fix/oomkill-multi-target-container
fix OOM killer
This commit is contained in:
commit
3111fee8bf
@ -179,7 +179,7 @@ func getOOMTargetContainerMultiProcess(name string) v1.Container {
|
|||||||
"sh",
|
"sh",
|
||||||
"-c",
|
"-c",
|
||||||
// use the dd tool to attempt to allocate 20M in a block which exceeds the limit
|
// 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{
|
Resources: v1.ResourceRequirements{
|
||||||
Requests: v1.ResourceList{
|
Requests: v1.ResourceList{
|
||||||
|
Loading…
Reference in New Issue
Block a user