mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 10:43:56 +00:00
fix OOM killer
Signed-off-by: lengrongfu <rongfu.leng@daocloud.io>
This commit is contained in:
parent
cc2f7b3198
commit
c23cee1be3
@ -151,7 +151,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{
|
||||
|
Loading…
Reference in New Issue
Block a user