From ab6d2b6ee5d25e214fff8a71a776c7d6eef0b13a Mon Sep 17 00:00:00 2001 From: Igor R Date: Thu, 4 Jul 2024 09:40:02 +0200 Subject: [PATCH] fix: fce updates-resources (#345) --- .kontinuous/env/prod/values.yaml | 59 +++++++++++++++++++++++++++----- 1 file changed, 50 insertions(+), 9 deletions(-) diff --git a/.kontinuous/env/prod/values.yaml b/.kontinuous/env/prod/values.yaml index d43a3c09..57b0d50a 100644 --- a/.kontinuous/env/prod/values.yaml +++ b/.kontinuous/env/prod/values.yaml @@ -4,9 +4,12 @@ n8n: # We're not setting limit=request as : # - usually n8n process consumes almost no resource # - a cron runs every night but does nothing except once a month when a new file is added. Then it can use up to 2cpu. + requests: + cpu: 100m + memory: 256Mi limits: cpu: "2" - memory: 1024Mi + memory: 1.5Gi env: - name: DB_POSTGRESDB_DATABASE valueFrom: @@ -68,21 +71,38 @@ redis: memory: 1Gi graphiql: + resources: + requests: + cpu: 100m + memory: 128Mi + limits: + cpu: 200m + memory: 2566Mi autoscale: enabled: true front: + resources: + requests: + cpu: 100m + memory: 128Mi + limits: + cpu: 200m + memory: 256Mi autoscale: enabled: true server: ~needs: [build-server, pg] - autoscale: - enabled: true resources: + requests: + cpu: 100m + memory: 386Mi limits: - cpu: "500m" - memory: 1280Mi + cpu: 200m + memory: 512Mi + autoscale: + enabled: true env: - name: PG_DB valueFrom: @@ -116,8 +136,11 @@ strapi: ~needs: [build-strapi, pg-strapi] strategyType: Recreate resources: + requests: + cpu: 100m + memory: 512Mi limits: - cpu: "500m" + cpu: 200m memory: 512Mi env: - name: DATABASE_NAME @@ -147,10 +170,28 @@ strapi: name: pg-strapi-superuser pg: - ~chart: pg + cnpg-cluster: + resources: + requests: + memory: 1Gi + limits: + cpu: "1" + memory: 1Gi pg-n8n: - ~chart: pg + cnpg-cluster: + resources: + requests: + memory: 1Gi + limits: + cpu: "1" + memory: 1Gi pg-strapi: - ~chart: pg + cnpg-cluster: + resources: + requests: + memory: 1Gi + limits: + cpu: "1" + memory: 1Gi