diff --git a/helm-msa/templates/deployment/myaktion-bank-deployment.yaml b/helm-msa/templates/deployment/myaktion-bank-deployment.yaml index 99cf78756d607eeb4d17ee84bab35cc35b00bc48..0a065d26ba4aa592e9cf865c87b7e6d91adcd9b6 100644 --- a/helm-msa/templates/deployment/myaktion-bank-deployment.yaml +++ b/helm-msa/templates/deployment/myaktion-bank-deployment.yaml @@ -16,7 +16,7 @@ spec: spec: containers: - name: myaktion-bank - image: ginyanote/myaktion-bank:1.0.0 + image: ginyanote/myaktion-bank:0.1.0 imagePullPolicy: IfNotPresent ports: - containerPort: 8082 diff --git a/helm-msa/templates/deployment/myaktion-deployment.yaml b/helm-msa/templates/deployment/myaktion-deployment.yaml index 58087ffd90b14deb5cfabd63f614d87d344e02c4..4af59080b76286e1ff9ca64e9ac9402a43ace369 100644 --- a/helm-msa/templates/deployment/myaktion-deployment.yaml +++ b/helm-msa/templates/deployment/myaktion-deployment.yaml @@ -22,7 +22,7 @@ spec: - containerPort: 8080 env: - name: SPRING_DATASOURCE_URL - value: "jdbc:postgresql://myaktion-postgres-db/postgres" + value: "jdbc:postgresql://myaktion-postgres-db-service/postgres" - name: URL_MYAKTION_MONITOR value: "http://myaktion-monitor-service/donations" - name: SPRING_REDIS_HOST diff --git a/helm-msa/templates/service/user-db-postgres-service.yml b/helm-msa/templates/service/user-db-postgres-service.yml new file mode 100644 index 0000000000000000000000000000000000000000..d88fa53fa36c2883a276cd7f13745c58a166c3a8 --- /dev/null +++ b/helm-msa/templates/service/user-db-postgres-service.yml @@ -0,0 +1,11 @@ +apiVersion: v1 +kind: Service +metadata: + name: user-db-postgres-service +spec: + selector: + app: user-db-postgres + ports: + - protocol: TCP + port: 5432 + targetPort: 5432 \ No newline at end of file