BAEL-2106: Spring Boot deployment to Openshift
This commit is contained in:
@@ -0,0 +1,7 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: spring-boot-bootstrap
|
||||||
|
data:
|
||||||
|
application.properties: |-
|
||||||
|
spring.datasource.url=jdbc:mysql://baeldung-demo-db:3306/
|
||||||
+306
-226
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,29 @@
|
|||||||
|
spec:
|
||||||
|
template:
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- env:
|
||||||
|
- name: SPRING_PROFILES_ACTIVE
|
||||||
|
value: mysql,openshift
|
||||||
|
- name: SPRING_DATASOURCE_USER
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: baeldung-demo-db
|
||||||
|
key: database-user
|
||||||
|
- name: SPRING_DATASOURCE_PASSWORD
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: baeldung-demo-db
|
||||||
|
key: database-password
|
||||||
|
livenessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /actuator/health
|
||||||
|
port: 8080
|
||||||
|
scheme: HTTP
|
||||||
|
initialDelaySeconds: 180
|
||||||
|
readinessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /actuator/health
|
||||||
|
port: 8080
|
||||||
|
scheme: HTTP
|
||||||
|
initialDelaySeconds: 20
|
||||||
Reference in New Issue
Block a user