From 7ae066bf9a3bab6a59181e1eb74eb5353d511e15 Mon Sep 17 00:00:00 2001 From: Thibault Raquet Date: Thu, 27 Jun 2024 09:21:49 +0000 Subject: [PATCH] Prod migration --- manifest.yaml | 20 +++----------------- production-resources.yaml | 13 +++++++++++++ 2 files changed, 16 insertions(+), 17 deletions(-) create mode 100644 production-resources.yaml diff --git a/manifest.yaml b/manifest.yaml index 65d68eb0..37356ba7 100644 --- a/manifest.yaml +++ b/manifest.yaml @@ -7,7 +7,7 @@ data: DB_NAME: "${APP_DB_NAME}" DB_USER: "${APP_DB_USER}" DB_PASSWORD: "${APP_DB_PASSWORD}" - DB_HOST: "mariadb-service.common-services" + DB_HOST: "mariadb.common-services" DB_PREFIX: "ldc_" WP_ENV: "${APP_WP_ENV}" WP_HOME: "https://www.${APP_DOMAIN}" @@ -101,7 +101,7 @@ spec: targetPort: 443 --- -apiVersion: traefik.containo.us/v1alpha1 +apiVersion: traefik.io/v1alpha1 kind: IngressRoute metadata: name: ${CI_PROJECT_PATH_SLUG}-ingress-route @@ -119,18 +119,4 @@ spec: - name: redirect-no-www-to-www namespace: common-services tls: - secretName: $APP_DOMAIN - ---- -apiVersion: cert-manager.io/v1 -kind: Certificate -metadata: - name: $APP_DOMAIN -spec: - dnsNames: - - $APP_DOMAIN - - www.${APP_DOMAIN} - secretName: $APP_DOMAIN - issuerRef: - name: $APP_CERT_ISSUER - kind: ClusterIssuer \ No newline at end of file + secretName: ${CRT_TLS_NAME} diff --git a/production-resources.yaml b/production-resources.yaml new file mode 100644 index 00000000..c297d728 --- /dev/null +++ b/production-resources.yaml @@ -0,0 +1,13 @@ +--- +apiVersion: cert-manager.io/v1 +kind: Certificate +metadata: + name: $APP_DOMAIN +spec: + dnsNames: + - $APP_DOMAIN + - www.${APP_DOMAIN} + secretName: $APP_DOMAIN + issuerRef: + name: $APP_CERT_ISSUER + kind: ClusterIssuer