Make tcpsocket readiness and liveness configurable
Change-Id: If0c466aa5a0b64fff0ed7cee037bd3cf8672ec46
Signed-off-by: Guillermo Calvino <guillermo.calvino@canonical.com>
diff --git a/installers/charm/nbi/config.yaml b/installers/charm/nbi/config.yaml
index f10304f..eabd968 100644
--- a/installers/charm/nbi/config.yaml
+++ b/installers/charm/nbi/config.yaml
@@ -107,3 +107,31 @@
description: Enables the security context of the pods
type: boolean
default: false
+ tcpsocket_readiness_probe:
+ description: |
+ Configuration of tcpsocket readiness probe.
+
+ Default values (when configuration is empty):
+ initial_delay_seconds = 5
+ timeout_seconds = 5
+ period_seconds = 10
+ success_threshold = 1
+ failure_threshold = 3
+
+ Example of configuration:
+ juju config nbi tcpsocket_readiness_probe='{"failure_threshold": 7}'
+ type: string
+ tcpsocket_liveness_probe:
+ description: |
+ Configuration of tcpsocket liveness probe.
+
+ Default values (when configuration is empty):
+ initial_delay_seconds = 5
+ timeout_seconds = 5
+ period_seconds = 10
+ success_threshold = 1
+ failure_threshold = 3
+
+ Example of configuration:
+ juju config nbi tcpsocket_liveness_probe='{"initial_delay_seconds": 10}'
+ type: string