From aa29e62ba4dd4f209b21c92d4a91a18594b17b58 Mon Sep 17 00:00:00 2001 From: Noah Lancien Date: Fri, 9 Jan 2026 11:10:01 +0100 Subject: [PATCH] ci: added ci variables to define pod resources + added staging-resources.yaml --- manifest.yaml | 14 ++++++++++++-- staging-resources.yaml | 20 ++++++++++++++++++++ 2 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 staging-resources.yaml diff --git a/manifest.yaml b/manifest.yaml index 61d7871..41490fa 100644 --- a/manifest.yaml +++ b/manifest.yaml @@ -64,6 +64,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 @@ -80,8 +87,11 @@ spec: ] resources: limits: - memory: 512Mi - cpu: "1" + cpu: "${APP_CI_CPU_LIMIT}" + memory: "${APP_CI_MEMORY_LIMIT}" + requests: + cpu: "${APP_CI_CPU_REQUEST}" + memory: "${APP_CI_MEMORY_REQUEST}" command: - "bash" args: diff --git a/staging-resources.yaml b/staging-resources.yaml new file mode 100644 index 0000000..a1cd413 --- /dev/null +++ b/staging-resources.yaml @@ -0,0 +1,20 @@ +--- +apiVersion: traefik.io/v1alpha1 +kind: IngressRoute +metadata: + name: ${CI_PROJECT_PATH_SLUG}-ingress-route +spec: + entryPoints: + - web + - websecure + routes: + - match: Host(`${APP_DOMAIN}`) + kind: Rule + services: + - name: ${CI_PROJECT_PATH_SLUG}-service + port: 80 + middlewares: + - name: admin-ldc-whitelist + namespace: common-services + tls: + secretName: ${CRT_TLS_NAME}