Browse Source

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
changes/49/551049/1
Lingxian Kong 4 years ago
parent
commit
9922c20249
  1. 7
      qinling/orchestrator/kubernetes/templates/deployment.j2

7
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

Loading…
Cancel
Save