From 0ac773f523117595213678c94006a52c5777eebe Mon Sep 17 00:00:00 2001 From: Noah Lancien Date: Tue, 3 Feb 2026 09:25:11 +0100 Subject: [PATCH] ci: added staging-resources.yaml + define pod resources + limit cronjobs --- manifest.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/manifest.yaml b/manifest.yaml index 8e806763..85c94f35 100644 --- a/manifest.yaml +++ b/manifest.yaml @@ -62,6 +62,13 @@ spec: envFrom: - configMapRef: name: ${CI_PROJECT_PATH_SLUG}-config-map + resources: + limits: + cpu: "${APP_CI_CPU_LIMIT}" + memory: "${APP_CI_MEMORY_LIMIT}" + requests: + cpu: "${APP_CI_CPU_REQUEST}" + memory: "${APP_CI_MEMORY_REQUEST}" volumeMounts: - name: storage mountPath: /app/srcs/storage @@ -76,6 +83,13 @@ spec: "-c", "kill -s TERM 1; while test $(ps ax | grep -v grep | grep bash | wc -l) -gt 0; do sleep 2s; done", ] + resources: + limits: + cpu: "${APP_CI_CPU_LIMIT}" + memory: "${APP_CI_MEMORY_LIMIT}" + requests: + cpu: "${APP_CI_CPU_REQUEST}" + memory: "${APP_CI_MEMORY_REQUEST}" command: - "bash" args: @@ -134,6 +148,8 @@ metadata: name: ${CI_PROJECT_PATH_SLUG}-cronjob spec: schedule: "* * * * *" + successfulJobsHistoryLimit: 1 + failedJobsHistoryLimit: 1 concurrencyPolicy: Forbid jobTemplate: spec: