[COMMON] Fix db-metrics readiness timeout issue 28/124028/4
authora.sreekumar <ajith.sreekumar@bell.ca>
Fri, 10 Sep 2021 13:41:30 +0000 (14:41 +0100)
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>
Thu, 16 Sep 2021 11:51:48 +0000 (11:51 +0000)
commitcf3133d88263a00e6fef18741575fd2561f70085
tree172a3995fa58f3f32a0e2c5563a119423f7a40e4
parentd362d9f64521d4585f779ff450f547da1ac00adb
[COMMON] Fix db-metrics readiness timeout issue

DB connection from Policy Framework components fail intermittently with
Connection refused error. Upon investigation, identified that
mariadb-metrics readiness is failing with timeout, and thereby affecting
the db connectivity intermittently.

So, changing readiness timeout from 1 second to 5 seconds so that
there is enough time to get back the /metrics response
and readiness can pass. Also making the properties configurable.

Similar issue could happen in other components too.

Change-Id: I8dfbfeb0fe791c1bce373dd9d7124d26457c4919
Issue-ID: POLICY-3637
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
kubernetes/common/mariadb-galera/templates/statefulset.yaml
kubernetes/common/mariadb-galera/values.yaml