From a5ec74990694ebd29c3ba92fdf0e0776461a1b28 Mon Sep 17 00:00:00 2001 From: Robin Huang Date: Mon, 16 Sep 2024 17:50:58 +0900 Subject: [PATCH] Add CPU/memory and minimum scale requirements. (#89) --- run-service-prod.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/run-service-prod.yaml b/run-service-prod.yaml index 2a09b70..d41dfd8 100644 --- a/run-service-prod.yaml +++ b/run-service-prod.yaml @@ -11,6 +11,7 @@ spec: autoscaling.knative.dev/min-scale: "1" autoscaling.knative.dev/minScale: '1' autoscaling.knative.dev/maxScale: '20' + run.googleapis.com/minScale: '1' spec: containers: - image: registry-backend-image-substitute @@ -57,3 +58,7 @@ spec: secretKeyRef: key: 2 name: PROD_ALGOLIA_API_KEY + resources: + limits: + cpu: 4000m + memory: 2Gi