From bdc84d71ba6ca101e28c492f808049f64171f32b Mon Sep 17 00:00:00 2001 From: Jenny Li Date: Mon, 1 Aug 2022 14:30:33 +0800 Subject: [PATCH] Decrease cpu request && move e2e out of whole pod to decrease resource (#18473) Signed-off-by: Jenny Li --- ci/jenkins/PR.groovy | 2 +- ci/jenkins/pod/e2e.yaml | 26 ++++++++++++++++++++++++++ tests/scripts/values/ci/pr.yaml | 2 +- 3 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 ci/jenkins/pod/e2e.yaml diff --git a/ci/jenkins/PR.groovy b/ci/jenkins/PR.groovy index 97cf6a4e72..d49df7b408 100644 --- a/ci/jenkins/PR.groovy +++ b/ci/jenkins/PR.groovy @@ -147,7 +147,7 @@ pipeline { kubernetes { inheritFrom 'default' defaultContainer 'main' - yamlFile 'ci/jenkins/pod/rte.yaml' + yamlFile 'ci/jenkins/pod/e2e.yaml' customWorkspace '/home/jenkins/agent/workspace' } } diff --git a/ci/jenkins/pod/e2e.yaml b/ci/jenkins/pod/e2e.yaml new file mode 100644 index 0000000000..3687278f60 --- /dev/null +++ b/ci/jenkins/pod/e2e.yaml @@ -0,0 +1,26 @@ +apiVersion: v1 +kind: Pod +metadata: + labels: + app: milvus-e2e + namespace: jenkins +spec: + enableServiceLinks: false + containers: + - name: pytest + image: harbor.milvus.io/dockerhub/milvusdb/pytest:20220728-a2e24ab + resources: + limits: + cpu: "6" + memory: 12Gi + requests: + cpu: "0.5" + memory: 5Gi + volumeMounts: + - mountPath: /ci-logs + name: ci-logs + volumes: + - name: ci-logs + nfs: + path: /ci-logs + server: 172.16.70.239 \ No newline at end of file diff --git a/tests/scripts/values/ci/pr.yaml b/tests/scripts/values/ci/pr.yaml index 05772fb1f7..cde33875cf 100644 --- a/tests/scripts/values/ci/pr.yaml +++ b/tests/scripts/values/ci/pr.yaml @@ -32,7 +32,7 @@ indexCoordinator: indexNode: resources: requests: - cpu: "4" + cpu: "1" memory: "500Mi" dataCoordinator: