BAEL-2106: Spring Boot deployment to Openshift

This commit is contained in:
Corneil du Plessis 2018-11-04 20:15:20 +02:00
parent 82e4adf623
commit c09e6d43fe
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: