From 2418746316283169634f9627a953f70e280215be Mon Sep 17 00:00:00 2001 From: Noah Lancien Date: Thu, 8 Jan 2026 16:15:00 +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 c3d87a9..f81e64e 100644 --- a/manifest.yaml +++ b/manifest.yaml @@ -63,6 +63,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 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}