From 2d8e8eea489cf19628378e2191b4595fa9c0be8c Mon Sep 17 00:00:00 2001 From: John O'Loughlin Date: Thu, 2 Nov 2023 10:54:11 +0000 Subject: [PATCH] Reduce ci resource requirement Signed-off-by: John O'Loughlin --- ci/ci.sh | 4 ++++ ci/ovs_test_setup/ovs_host.sh | 8 ++++---- ci/ovs_test_setup/testpmd_pod.sh | 8 ++++---- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/ci/ci.sh b/ci/ci.sh index f5432175..6d6e2f37 100755 --- a/ci/ci.sh +++ b/ci/ci.sh @@ -83,6 +83,10 @@ else echo VPP ping test failed exit 1 fi + +kubectl delete -n vpp pod/vpp-app1-kind-control-plane +kubectl delete -n vpp pod/vpp-app2-kind-control-plane +kubectl delete -n vpp pod/vpp-kind-control-plane } build_ovs_container(){ diff --git a/ci/ovs_test_setup/ovs_host.sh b/ci/ovs_test_setup/ovs_host.sh index 6c0192de..a60454b0 100755 --- a/ci/ovs_test_setup/ovs_host.sh +++ b/ci/ovs_test_setup/ovs_host.sh @@ -34,12 +34,12 @@ spec: resources: requests: hugepages-2Mi: 1Gi - memory: "1Gi" - cpu: "10" + memory: "500Mi" + cpu: "5" limits: hugepages-2Mi: 1Gi - memory: "1Gi" - cpu: "10" + memory: "500Mi" + cpu: "5" securityContext: capabilities: add: ["NET_ADMIN", "SYS_TIME"] diff --git a/ci/ovs_test_setup/testpmd_pod.sh b/ci/ovs_test_setup/testpmd_pod.sh index 0bcde250..a9934aa0 100755 --- a/ci/ovs_test_setup/testpmd_pod.sh +++ b/ci/ovs_test_setup/testpmd_pod.sh @@ -45,12 +45,12 @@ spec: resources: requests: hugepages-2Mi: 1Gi - memory: "1Gi" - cpu: "10" + memory: "500Mi" + cpu: "5" limits: hugepages-2Mi: 1Gi - memory: "1Gi" - cpu: "10" + memory: "500Mi" + cpu: "5" # command: ["/bin/sh"] # args: ["-c", "sleep inf"] restartPolicy: Always