From 4a7865dfe66010441246f555a3b472fbdfe8e001 Mon Sep 17 00:00:00 2001
From: Christian Zheng <czheng@takima.fr>
Date: Wed, 2 Aug 2023 16:19:06 +0200
Subject: [PATCH] update values

---
 templates/api-ingress.yaml   |  1 -
 values.yaml => values.1.yaml |  2 +-
 values.2.yaml                | 30 ++++++++++++++++++++++++++++++
 3 files changed, 31 insertions(+), 2 deletions(-)
 rename values.yaml => values.1.yaml (96%)
 create mode 100644 values.2.yaml

diff --git a/templates/api-ingress.yaml b/templates/api-ingress.yaml
index e675cf6..a38220f 100644
--- a/templates/api-ingress.yaml
+++ b/templates/api-ingress.yaml
@@ -4,7 +4,6 @@ metadata:
   annotations:
     kubernetes.io/ingress.class: nginx
     {{- if .Values.api.ingress.tlsEnabled }}
-    kubernetes.io/tls-acme: 'true'
     nginx.ingress.kubernetes.io/cors-allow-headers: Content-Type
     nginx.ingress.kubernetes.io/cors-allow-methods: '*'
     nginx.ingress.kubernetes.io/cors-allow-origin: {{ .Values.front.ingress.host }}
diff --git a/values.yaml b/values.1.yaml
similarity index 96%
rename from values.yaml
rename to values.1.yaml
index d529bec..a3f188e 100644
--- a/values.yaml
+++ b/values.1.yaml
@@ -10,7 +10,7 @@ api:
     tag: latest
   replicaCount: 1
   ingress:
-    tlsEnabled: true
+    tlsEnabled: false
     host: api.czheng.takima.school
   db:
     endpoint: cdb-postgresql:5432
diff --git a/values.2.yaml b/values.2.yaml
new file mode 100644
index 0000000..5defebf
--- /dev/null
+++ b/values.2.yaml
@@ -0,0 +1,30 @@
+# Default values for CDB app.
+# This is a YAML-formatted file.
+# Declare variables to be passed into your templates.
+# We have only done front for now
+name: cdb
+
+api:
+  image:
+    repository: registry.gitlab.com/takima-school/images/cdb/api
+    tag: latest
+  replicaCount: 3
+  ingress:
+    tlsEnabled: true
+    host: api.czheng.takima.school
+  db:
+    endpoint: cdb-postgresql:5432
+
+front:
+  enabled: true
+  image:
+    repository: registry.gitlab.com/takima-school/images/cdb/www
+    tag: latest
+  replicaCount: 5
+  ingress:
+    tlsEnabled: true
+    host: www.czheng.takima.school
+
+db:
+  dbName: hydra
+  prefix: cdb
-- 
GitLab