From d8c00428d87ac774fdae398909cf7b4c45d1a567 Mon Sep 17 00:00:00 2001 From: maslow Date: Mon, 16 May 2022 14:39:25 +0800 Subject: [PATCH] fix(instance controller): fix req_mem error --- .../src/support/instance-kubernetes-driver.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/instance-controller/src/support/instance-kubernetes-driver.ts b/packages/instance-controller/src/support/instance-kubernetes-driver.ts index e4b59db85e..001d3c3168 100644 --- a/packages/instance-controller/src/support/instance-kubernetes-driver.ts +++ b/packages/instance-controller/src/support/instance-kubernetes-driver.ts @@ -117,7 +117,7 @@ export class KubernetesDriver implements InstanceDriverInterface { const limit_cpu = app_spec.spec.limit_cpu const req_cpu = app_spec.spec.request_cpu - const req_memory = ~~(app_spec.spec.limit_memory / MB) + const req_memory = ~~(app_spec.spec.request_memory / MB) const image_name = app.runtime?.image const max_old_space_size = ~~(limit_memory * 0.8)