From 5db79654fc054f421880470eb5e8d4287bff99ea Mon Sep 17 00:00:00 2001 From: quicksilver Date: Sun, 29 Sep 2019 14:27:32 +0800 Subject: [PATCH] add resources limits Former-commit-id: b0ac5456047067fad7e735df87c25c7b887bb042 --- ci/main_jenkinsfile | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/ci/main_jenkinsfile b/ci/main_jenkinsfile index 40224fe8..d65ad512 100644 --- a/ci/main_jenkinsfile +++ b/ci/main_jenkinsfile @@ -33,12 +33,30 @@ pipeline { cloud 'build-kubernetes' label 'build' defaultContainer 'jnlp' - containerTemplate { - name 'milvus-build-env' - image 'registry.zilliz.com/milvus/milvus-build-env:v0.12' - ttyEnabled true - command 'cat' - } + yaml """ +apiVersion: v1 +kind: Pod +metadata: + name: milvus-build-env + labels: + app: milvus + componet: build-env +spec: + containers: + - name: milvus-build-env + image: registry.zilliz.com/milvus/milvus-build-env:v0.12 + command: + - cat + tty: true + resources: + limits: + memory: "28Gi" + cpu: "10.0" + nvidia.com/gpu: 1 + requests: + memory: "14Gi" + cpu: "5.0" +""" } } stages { -- GitLab