From 7ab1a7ecc15c8cf3293c00a991fcb7873f12228d Mon Sep 17 00:00:00 2001 From: pstlouis Date: Tue, 26 Nov 2024 15:29:22 -0500 Subject: [PATCH 1/4] edit mongodb host Signed-off-by: pstlouis --- charts/orgbook-publisher/templates/backend/deployment.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/orgbook-publisher/templates/backend/deployment.yaml b/charts/orgbook-publisher/templates/backend/deployment.yaml index 0e2d873..fcf0975 100644 --- a/charts/orgbook-publisher/templates/backend/deployment.yaml +++ b/charts/orgbook-publisher/templates/backend/deployment.yaml @@ -56,7 +56,7 @@ spec: # MONGODB - name: MONGO_HOST - value: "{{ .Release.Name }}-mongodb-headless.{{ .Release.Namespace }}.svc.cluster.local" + value: "{{ .Release.Name }}-mongodb.{{ .Release.Namespace }}.svc.cluster.local" - name: MONGO_PORT value: {{ .Values.mongodb.service.ports.mongodb | quote }} - name: MONGO_USER From 555f052bfab657b85f675a43ae71882272323bfc Mon Sep 17 00:00:00 2001 From: pstlouis Date: Tue, 26 Nov 2024 15:30:05 -0500 Subject: [PATCH 2/4] remove mongo host suffix Signed-off-by: pstlouis --- charts/orgbook-publisher/templates/backend/deployment.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/orgbook-publisher/templates/backend/deployment.yaml b/charts/orgbook-publisher/templates/backend/deployment.yaml index fcf0975..acb1c32 100644 --- a/charts/orgbook-publisher/templates/backend/deployment.yaml +++ b/charts/orgbook-publisher/templates/backend/deployment.yaml @@ -56,7 +56,7 @@ spec: # MONGODB - name: MONGO_HOST - value: "{{ .Release.Name }}-mongodb.{{ .Release.Namespace }}.svc.cluster.local" + value: "{{ .Release.Name }}-mongodb.{{ .Release.Namespace }}.svc" - name: MONGO_PORT value: {{ .Values.mongodb.service.ports.mongodb | quote }} - name: MONGO_USER From c230f92776e5d04b064849effced15052399c175 Mon Sep 17 00:00:00 2001 From: pstlouis Date: Tue, 26 Nov 2024 15:36:46 -0500 Subject: [PATCH 3/4] update mongodb password secret ref Signed-off-by: pstlouis --- charts/orgbook-publisher/templates/backend/deployment.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/orgbook-publisher/templates/backend/deployment.yaml b/charts/orgbook-publisher/templates/backend/deployment.yaml index acb1c32..e1fbf08 100644 --- a/charts/orgbook-publisher/templates/backend/deployment.yaml +++ b/charts/orgbook-publisher/templates/backend/deployment.yaml @@ -65,7 +65,7 @@ spec: valueFrom: secretKeyRef: name: {{ .Values.mongodb.nameOverride }} - key: password + key: mongodb-passwords ports: - name: api containerPort: {{ .Values.backend.service.apiPort }} From fd94bf8f8c2397c22134505bf40c74f4836fb260 Mon Sep 17 00:00:00 2001 From: pstlouis Date: Tue, 26 Nov 2024 15:43:45 -0500 Subject: [PATCH 4/4] fix mongodb hostname Signed-off-by: pstlouis --- charts/orgbook-publisher/templates/backend/deployment.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/orgbook-publisher/templates/backend/deployment.yaml b/charts/orgbook-publisher/templates/backend/deployment.yaml index e1fbf08..9cc0a9d 100644 --- a/charts/orgbook-publisher/templates/backend/deployment.yaml +++ b/charts/orgbook-publisher/templates/backend/deployment.yaml @@ -56,7 +56,7 @@ spec: # MONGODB - name: MONGO_HOST - value: "{{ .Release.Name }}-mongodb.{{ .Release.Namespace }}.svc" + value: "{{ .Release.Name }}-mongodb" - name: MONGO_PORT value: {{ .Values.mongodb.service.ports.mongodb | quote }} - name: MONGO_USER