From 80690baaa51050cd0cc06d8e7280ef5c0d60d8e4 Mon Sep 17 00:00:00 2001 From: gyuyoung Date: Sun, 20 Oct 2024 21:33:05 +0900 Subject: [PATCH] Update modelmgmtservice configmap and deployment manifest - Update the configmap and deployment mainifest to configure the postgres environment variable properly Issue-ID: AIMLFW-167 Change-Id: I65e0d7c11cb7b6cd1f4809f60a194c84df393c68 Signed-off-by: gyuyoung --- helm/modelmgmtservice/templates/configmap.yaml | 4 ++++ helm/modelmgmtservice/templates/deployment.yaml | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/helm/modelmgmtservice/templates/configmap.yaml b/helm/modelmgmtservice/templates/configmap.yaml index 57c68c1..f49027b 100644 --- a/helm/modelmgmtservice/templates/configmap.yaml +++ b/helm/modelmgmtservice/templates/configmap.yaml @@ -30,3 +30,7 @@ data: MODEL_FILE_POSTFIX: _model.zip INFO_FILE_POSTFIX: _info.json LOG_FILE_NAME: mmes.log + PG_USER: postgres + PG_HOST: tm-db-postgresql + PG_PORT: "5432" + PG_DBNAME: training_manager_database \ No newline at end of file diff --git a/helm/modelmgmtservice/templates/deployment.yaml b/helm/modelmgmtservice/templates/deployment.yaml index d3037e5..fc9c97a 100644 --- a/helm/modelmgmtservice/templates/deployment.yaml +++ b/helm/modelmgmtservice/templates/deployment.yaml @@ -58,3 +58,8 @@ spec: secretKeyRef: name: leofs-secret key: password + - name: PG_PASSWORD + valueFrom: + secretKeyRef: + key: postgres-password + name: tm-db-postgresql \ No newline at end of file -- 2.16.6