Update modelmgmtservice configmap and deployment manifest 68/13668/1
authorgyuyoung <gyoue200125@gmail.com>
Sun, 20 Oct 2024 12:33:05 +0000 (21:33 +0900)
committergyuyoung <gyoue200125@gmail.com>
Sun, 20 Oct 2024 12:37:20 +0000 (21:37 +0900)
- Update the configmap and deployment mainifest to configure the postgres environment
  variable properly

Issue-ID: AIMLFW-167

Change-Id: I65e0d7c11cb7b6cd1f4809f60a194c84df393c68
Signed-off-by: gyuyoung <gyoue200125@gmail.com>
helm/modelmgmtservice/templates/configmap.yaml
helm/modelmgmtservice/templates/deployment.yaml

index 57c68c1..f49027b 100644 (file)
@@ -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
index d3037e5..fc9c97a 100644 (file)
@@ -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