Bug Fix for Postgres Deployment 88/3588/1
authorabhijit_onap <abhijit.das.gupta@huawei.com>
Thu, 18 Jun 2020 19:25:31 +0000 (00:55 +0530)
committerabhijit_onap <abhijit.das.gupta@huawei.com>
Thu, 18 Jun 2020 19:25:31 +0000 (00:55 +0530)
Modified Postgres Version to 9.6
Modified postgres user and DB
Modified postgres service name
Mdofied applcm-broker DBHOST name

Signed-off-by: abhijit_onap <abhijit.das.gupta@huawei.com>
Change-Id: I7cc66ab33f7e933f38afd0cdb3148cbdec0d58c1

ocd/infra/playbooks/roles/applcm/files/deploy/applcm-broker-deployment.yaml
ocd/infra/playbooks/roles/applcm/files/deploy/postgres-config.yaml
ocd/infra/playbooks/roles/applcm/files/deploy/postgres-k8s.yaml
ocd/infra/playbooks/roles/applcm/files/deploy/postgres-service.yaml

index 74bb34a..648b0f4 100644 (file)
@@ -53,13 +53,13 @@ spec:
         - name: POSTGRES_DATABASE
           value: mecmdb
         - name: DBHOST
-          value: mecmdb
+          value: postgres-db
         - name: POSTGRES_PASSWORD
-          value: password
+          value: mecm
         - name: POSTGRES_ROOT_PASSWORD
-          value: password
+          value: mecm
         - name: POSTGRES_USER
-          value: root
+          value: mecm
         - name: PACKAGE_ARTIFACT_PATH
           value: /Artifacts/Deployment/
         - name: PACKAGE_PATH
index 7cc87a3..1b6e041 100644 (file)
@@ -22,5 +22,5 @@ metadata:
     app: postgres
 data:
   POSTGRES_DB: mecmdb
-  POSTGRES_USER: root
-  POSTGRES_PASSWORD: password
+  POSTGRES_USER: mecm
+  POSTGRES_PASSWORD: mecm
index 3846778..cd1439c 100644 (file)
@@ -34,7 +34,7 @@ spec:
     spec:
       containers:
         - name: postgres
-          image: postgres:13
+          image: postgres:9.6
           imagePullPolicy: "Always"
           envFrom:
             - configMapRef:
index 59e6147..96d4e61 100644 (file)
@@ -17,7 +17,7 @@
 apiVersion: v1
 kind: Service
 metadata:
-  name: mecmdb
+  name: postgres-db
   namespace: default
   labels:
     app: postgres