From 57554f415671b11d647730ef568169a87bdebbc6 Mon Sep 17 00:00:00 2001 From: Vincent BRIDIER Date: Thu, 27 Nov 2025 09:10:26 +0100 Subject: [PATCH] feat: Add DB_HOST and DB_PORT into manifest.yaml --- manifest.yaml | 5 +++-- staging-resources.yaml | 20 ++++++++++++++++++++ 2 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 staging-resources.yaml diff --git a/manifest.yaml b/manifest.yaml index 7e67fd3..4d5cb40 100644 --- a/manifest.yaml +++ b/manifest.yaml @@ -10,7 +10,8 @@ data: APP_URL: "https://${APP_DOMAIN}" LOG_CHANNEL: "k8s" LOG_LEVEL: "${APP_LOG_LEVEL}" - DB_HOST: "mariadb.common-services" + DB_HOST: "${APP_DB_HOST}" + DB_PORT: "${APP_DB_PORT}" DB_DATABASE: "${APP_DB_DATABASE}" DB_USERNAME: "${APP_DB_USERNAME}" DB_PASSWORD: "${APP_DB_PASSWORD}" @@ -105,7 +106,7 @@ spec: app: ${CI_PROJECT_PATH_SLUG}-app ports: - port: 80 - targetPort: 443 + targetPort: 80 --- apiVersion: traefik.io/v1alpha1 diff --git a/staging-resources.yaml b/staging-resources.yaml new file mode 100644 index 0000000..c037e58 --- /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} \ No newline at end of file