This is an automated email from the ASF dual-hosted git repository.
kaze pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/fineract.git
The following commit(s) were added to refs/heads/develop by this push:
new a52a3cc Add readiness & liveness probes to fineract-server deployment
(FINERACT-1296)
a52a3cc is described below
commit a52a3cc73800629789b30d5d390fc1fd7fbcff02
Author: BLasan <[email protected]>
AuthorDate: Mon Mar 1 11:44:40 2021 +0530
Add readiness & liveness probes to fineract-server deployment
(FINERACT-1296)
---
.../properties/basicauth/application.properties | 5 +++++
kubernetes/fineract-server-deployment.yml | 12 ++++++++++++
2 files changed, 17 insertions(+)
diff --git a/fineract-provider/properties/basicauth/application.properties
b/fineract-provider/properties/basicauth/application.properties
index 64e5421..4a0e1dd 100644
--- a/fineract-provider/properties/basicauth/application.properties
+++ b/fineract-provider/properties/basicauth/application.properties
@@ -20,6 +20,11 @@
spring.profiles.default=basicauth
management.health.jms.enabled=false
+# FINERACT 1296
+management.endpoint.health.probes.enabled=true
+management.health.livenessState.enabled=true
+management.health.readinessState.enabled=true
+
# FINERACT-883
management.info.git.mode=FULL
diff --git a/kubernetes/fineract-server-deployment.yml
b/kubernetes/fineract-server-deployment.yml
index b28b0be..0e47d27 100644
--- a/kubernetes/fineract-server-deployment.yml
+++ b/kubernetes/fineract-server-deployment.yml
@@ -61,6 +61,18 @@ spec:
containers:
- name: fineract-server
image: apache/fineract:latest
+ livenessProbe:
+ httpGet:
+ path: /fineract-provider/actuator/health/liveness
+ port: 8443
+ initialDelaySeconds: 90
+ periodSeconds: 1
+ readinessProbe:
+ httpGet:
+ path: /fineract-provider/actuator/health/readiness
+ port: 8443
+ initialDelaySeconds: 90
+ periodSeconds: 1
env:
- name: DRIVERCLASS_NAME
value: org.drizzle.jdbc.DrizzleDriver