mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 19:01:49 +00:00
Add message which shows how much CPU used
"validates resource limits of pods that are allowed to run" test of conformance tests are flake on some local environments. The CPU workload pods don't seem work well and nodes have still CPU capacity after running the workload pods. Then the conformance test failed unexpectedly. This adds message which shows how much CPU used by the workload pods for investigating it easily.
This commit is contained in:
parent
2c2ca27bfc
commit
c6c274e8c9
@ -282,6 +282,7 @@ var _ = SIGDescribe("SchedulerPredicates [Serial]", func() {
|
||||
fillerPods := []*v1.Pod{}
|
||||
for nodeName, cpu := range nodeToAllocatableMap {
|
||||
requestedCPU := cpu * 7 / 10
|
||||
e2elog.Logf("Creating a pod which consumes cpu=%vm on Node %v", requestedCPU, nodeName)
|
||||
fillerPods = append(fillerPods, createPausePod(f, pausePodConfig{
|
||||
Name: "filler-pod-" + string(uuid.NewUUID()),
|
||||
Resources: &v1.ResourceRequirements{
|
||||
|
Loading…
Reference in New Issue
Block a user