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
|
name: spring-boot-bootstrap
|
||||||
data:
|
data:
|
||||||
application.properties: |-
|
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:
|
containers:
|
||||||
- env:
|
- env:
|
||||||
- name: SPRING_PROFILES_ACTIVE
|
- name: SPRING_PROFILES_ACTIVE
|
||||||
value: mysql,openshift
|
value: mysql
|
||||||
- name: SPRING_DATASOURCE_USER
|
- name: SPRING_DATASOURCE_USER
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: baeldung-demo-db
|
name: baeldung-db
|
||||||
key: database-user
|
key: database-user
|
||||||
- name: SPRING_DATASOURCE_PASSWORD
|
- name: SPRING_DATASOURCE_PASSWORD
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: baeldung-demo-db
|
name: baeldung-db
|
||||||
key: database-password
|
key: database-password
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
|
|
Loading…
Reference in New Issue