Merge pull request #5618 from corneil/BAEL-2106

BAEL-2106: Spring Boot deployment to Openshift
This commit is contained in:
Loredana Crusoveanu 2018-11-04 20:32:58 +02:00 committed by GitHub
commit 79f4cab950
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -4,4 +4,4 @@ metadata:
name: spring-boot-bootstrap
data:
application.properties: |-
spring.datasource.url=jdbc:mysql://baeldung-demo-db:3306/
spring.datasource.url=jdbc:mysql://baeldung-db:3306/baeldung_db

View File

@ -4,16 +4,16 @@ spec:
containers:
- env:
- name: SPRING_PROFILES_ACTIVE
value: mysql,openshift
value: mysql
- name: SPRING_DATASOURCE_USER
valueFrom:
secretKeyRef:
name: baeldung-demo-db
name: baeldung-db
key: database-user
- name: SPRING_DATASOURCE_PASSWORD
valueFrom:
secretKeyRef:
name: baeldung-demo-db
name: baeldung-db
key: database-password
livenessProbe:
httpGet: