From 944dbad3af4daaf7b83bc93ac6d58f6893932dc4 Mon Sep 17 00:00:00 2001 From: Noah Lancien Date: Fri, 9 Jan 2026 10:26:33 +0100 Subject: [PATCH] ci: added ci variables to define pod resources + added staging-resources.yaml --- manifest.yaml | 7 +++++++ staging-resources.yaml | 20 ++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 staging-resources.yaml diff --git a/manifest.yaml b/manifest.yaml index ccf83281..5c8d7dd7 100644 --- a/manifest.yaml +++ b/manifest.yaml @@ -67,6 +67,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 diff --git a/staging-resources.yaml b/staging-resources.yaml new file mode 100644 index 00000000..a1cd4132 --- /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}