From 91bdea2a1db8c8ec6239b9cbc1d13d1a23c95ab7 Mon Sep 17 00:00:00 2001 From: Mariusz Sabath Date: Mon, 24 Apr 2023 14:17:47 -0400 Subject: [PATCH] Provide minimal resources to prevent accidental crashes due to resource exhaustion Signed-off-by: Mariusz Sabath --- charts/spire/charts/tornjak-frontend/values.yaml | 9 +++++++++ examples/tornjak/values.yaml | 7 +++++++ 2 files changed, 16 insertions(+) diff --git a/charts/spire/charts/tornjak-frontend/values.yaml b/charts/spire/charts/tornjak-frontend/values.yaml index a27ef48..0d1d645 100644 --- a/charts/spire/charts/tornjak-frontend/values.yaml +++ b/charts/spire/charts/tornjak-frontend/values.yaml @@ -41,6 +41,15 @@ service: port: 3000 annotations: {} +# -- Provide minimal resources to prevent accidental crashes due to resource exhaustion +# resources: +# requests: +# cpu: 50m +# memory: 128Mi +# limits: +# cpu: 100m +# memory: 512Mi + # -- URL of the Tornjak APIs (backend) # Since Tornjak Frontend runs in the browser, this URL must be accessible from # the machine running a browser. diff --git a/examples/tornjak/values.yaml b/examples/tornjak/values.yaml index c4ff6f2..a407265 100644 --- a/examples/tornjak/values.yaml +++ b/examples/tornjak/values.yaml @@ -8,3 +8,10 @@ tornjak-frontend: type: ClusterIP port: 3000 apiServerURL: "http://localhost:10000/" + resources: + requests: + cpu: 50m + memory: 128Mi + limits: + cpu: 100m + memory: 512Mi