@@ -113,6 +113,9 @@ func runOomKillerTest(f *framework.Framework, testCase testCase, kubeReservedMem
113
113
}
114
114
115
115
ginkgo .BeforeEach (func () {
116
+ // Precautionary check that kubelet is healthy before running the test.
117
+ waitForKubeletToStart (context .TODO (), f )
118
+
116
119
ginkgo .By ("setting up the pod to be used in the test" )
117
120
e2epod .NewPodClient (f ).Create (context .TODO (), testCase .podSpec )
118
121
})
@@ -164,7 +167,8 @@ func getOOMTargetPod(podName string, ctnName string, createContainer func(name s
164
167
Name : podName ,
165
168
},
166
169
Spec : v1.PodSpec {
167
- RestartPolicy : v1 .RestartPolicyNever ,
170
+ PriorityClassName : "system-node-critical" ,
171
+ RestartPolicy : v1 .RestartPolicyNever ,
168
172
Containers : []v1.Container {
169
173
createContainer (ctnName ),
170
174
},
@@ -268,7 +272,7 @@ func getOOMTargetContainerWithoutLimit(name string) v1.Container {
268
272
"sh" ,
269
273
"-c" ,
270
274
// use the dd tool to attempt to allocate huge block of memory which exceeds the node allocatable
271
- "sleep 5 && dd if=/dev/zero of=/dev/null iflag=fullblock count=10 bs=10G " ,
275
+ "sleep 5 && dd if=/dev/zero of=/dev/null iflag=fullblock count=10 bs=1024G " ,
272
276
},
273
277
SecurityContext : & v1.SecurityContext {
274
278
SeccompProfile : & v1.SeccompProfile {
0 commit comments