Current test assumes that test pod is deleted when the test namespace is deleted. However, namespace deletion is an asynchronous operation. The pod may still be running and allocating hugepages resources when next test case creates another pod that requests the same hugepages resources. This can cause kubelet to fail the test pod with this kind of error: OutOfhugepages-2Mi: Node didn't have enough resource: hugepages-2Mi requested: 6291456, used: 6291456, capacity: 10485760 Explicitly deleting test pod should fix this issue.
16 KiB
16 KiB