From d477bd904c723fc2d2a58df3b7d3a754c1549e14 Mon Sep 17 00:00:00 2001 From: Shyam Jeedigunta Date: Tue, 22 Jan 2019 20:26:02 -0800 Subject: [PATCH] Leave slack for addon pods in node's capacity --- test/e2e/scalability/density.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/e2e/scalability/density.go b/test/e2e/scalability/density.go index 9a2e64256c..5db463bcef 100644 --- a/test/e2e/scalability/density.go +++ b/test/e2e/scalability/density.go @@ -500,8 +500,9 @@ var _ = SIGDescribe("Density", func() { nodeCount = len(nodes.Items) Expect(nodeCount).NotTo(BeZero()) - nodeCpuCapacity = nodes.Items[0].Status.Allocatable.Cpu().MilliValue() - nodeMemCapacity = nodes.Items[0].Status.Allocatable.Memory().Value() + // Compute node capacity, leaving some slack for addon pods. + nodeCpuCapacity = nodes.Items[0].Status.Allocatable.Cpu().MilliValue() - 100 + nodeMemCapacity = nodes.Items[0].Status.Allocatable.Memory().Value() - 100*1024*1024 // Terminating a namespace (deleting the remaining objects from it - which // generally means events) can affect the current run. Thus we wait for all