Merge pull request #5618 from corneil/BAEL-2106
BAEL-2106: Spring Boot deployment to Openshift
This commit is contained in:
commit
79f4cab950
|
@ -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
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue