From 9922c2024977c506f5073342213ebd1d136c00fd Mon Sep 17 00:00:00 2001 From: Lingxian Kong Date: Fri, 9 Mar 2018 14:42:47 +1300 Subject: [PATCH] Remove the resource limit for pod in k8s deployment For non-image type function, it's the runtime server's reponsibility to set resource limit for sub-process. For image type function, we set the limit in pod definition for now, may provide config option or input param in future. Change-Id: I6c0e19759df0b964eb63839998327e55b4c4b092 --- qinling/orchestrator/kubernetes/templates/deployment.j2 | 7 ------- 1 file changed, 7 deletions(-) diff --git a/qinling/orchestrator/kubernetes/templates/deployment.j2 b/qinling/orchestrator/kubernetes/templates/deployment.j2 index 8c76dfcf..04c1cb5b 100644 --- a/qinling/orchestrator/kubernetes/templates/deployment.j2 +++ b/qinling/orchestrator/kubernetes/templates/deployment.j2 @@ -34,13 +34,6 @@ spec: volumeMounts: - name: package-folder mountPath: /var/qinling/packages - resources: - limits: - cpu: "0.3" - memory: 128Mi - requests: - cpu: "0.1" - memory: 32Mi - name: sidecar image: openstackqinling/sidecar imagePullPolicy: IfNotPresent