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 4ee1cf7 Add ReadinessProbe for mysql container (FINERACT-1292)
4ee1cf7 is described below
commit 4ee1cf721017d242abcebc56b0c4ad623a142d5a
Author: BLasan <[email protected]>
AuthorDate: Thu Jan 14 15:04:34 2021 +0530
Add ReadinessProbe for mysql container (FINERACT-1292)
---
kubernetes/fineractmysql-deployment.yml | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/kubernetes/fineractmysql-deployment.yml
b/kubernetes/fineractmysql-deployment.yml
index e8f65e7..fc76544 100644
--- a/kubernetes/fineractmysql-deployment.yml
+++ b/kubernetes/fineractmysql-deployment.yml
@@ -99,6 +99,15 @@ spec:
command: ["sh","-c","mysqladmin ping -h localhost -uroot
-p${MYSQL_ROOT_PASSWORD}"]
failureThreshold: 10
timeoutSeconds: 10
+ readinessProbe:
+ exec:
+ command:
+ - sh
+ - -c
+ - mysqladmin ping -uroot -p${MYSQL_PASSWORD}
+ failureThreshold: 10
+ initialDelaySeconds: 5
+ periodSeconds: 5
ports:
- containerPort: 3306
name: fineractmysql