From 385edf262f74dfe4b443cadbdd4bafd6f6537c9e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lo=C3=AFc=20Herv=C3=A9?= <lherve@takima.fr>
Date: Wed, 28 Jun 2023 11:48:42 +0200
Subject: [PATCH] =?UTF-8?q?tout=20d=C3=A9marre?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 templates/api-ingress.yaml      | 4 ++--
 templates/front-deployment.yaml | 2 +-
 values.yaml                     | 8 ++++----
 3 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/templates/api-ingress.yaml b/templates/api-ingress.yaml
index 641f75e..c8f7f5c 100644
--- a/templates/api-ingress.yaml
+++ b/templates/api-ingress.yaml
@@ -6,7 +6,7 @@ metadata:
  name: api
 spec:
   rules:
-  - host: api.lortola.takima.school
+  - host: api.lherve.takima.school
     http:
       paths:
       - backend:
@@ -18,5 +18,5 @@ spec:
         pathType: Prefix
   tls:
   - hosts:
-     - api.lortola.takima.school
+     - api.lherve.takima.school
     secretName: app-wildcard
\ No newline at end of file
diff --git a/templates/front-deployment.yaml b/templates/front-deployment.yaml
index 9f5e41d..fa7c697 100644
--- a/templates/front-deployment.yaml
+++ b/templates/front-deployment.yaml
@@ -63,6 +63,6 @@ spec:
           - name: API_URL
             valueFrom:
               configMapKeyRef:
-                name: front-config
+                name: {{ .Values.name }}-front
                 key: API_URL
 {{- end }}
\ No newline at end of file
diff --git a/values.yaml b/values.yaml
index 35b966b..9b2f23c 100644
--- a/values.yaml
+++ b/values.yaml
@@ -11,8 +11,8 @@ api:
     tag: latest
   replicaCount: 1
   ingress:
-    tlsEnabled: false
-    host: api.to-replace.takima.school
+    tlsEnabled: true
+    host: api.lherve.takima.school
 
 front:
   enabled: true
@@ -21,5 +21,5 @@ front:
     tag: latest
   replicaCount: 1
   ingress:
-    tlsEnabled: false
-    host: www.to-replace.takima.school
\ No newline at end of file
+    tlsEnabled: true
+    host: cdb.lherve.takima.school
\ No newline at end of file
-- 
GitLab