BAEL-2106: Spring Boot deployment to Openshift

This commit is contained in:
Corneil du Plessis
2018-11-04 12:53:55 +02:00
parent ab821cb4e5
commit ee2e546508
3 changed files with 342 additions and 226 deletions
@@ -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