add timeout for mariadb readiness 18/88218/1
authoryangyan <yangyanyj@chinamobile.com>
Wed, 22 May 2019 05:04:15 +0000 (13:04 +0800)
committeryangyan <yangyanyj@chinamobile.com>
Wed, 22 May 2019 05:04:22 +0000 (13:04 +0800)
Issue-ID: VFC-1392
Change-Id: I8b4a97dbac6245c7747a31fdc557ffd8d9a974d5
Signed-off-by: yangyan <yangyanyj@chinamobile.com>
kubernetes/common/mariadb-galera/templates/statefulset.yaml
kubernetes/common/mariadb-galera/values.yaml

index 6dc5a7a..b0b7174 100644 (file)
@@ -89,6 +89,7 @@ spec:
               - /usr/share/container-scripts/mysql/readiness-probe.sh
             initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
             periodSeconds: {{ .Values.readiness.periodSeconds }}
+            timeoutSeconds: {{ .Values.readiness.timeoutSeconds }}
       {{- if eq .Values.liveness.enabled true }}
           livenessProbe:
             exec:
index e4c6550..d91f4fd 100644 (file)
@@ -57,6 +57,7 @@ liveness:
 readiness:
   initialDelaySeconds: 15
   periodSeconds: 10
+  timeoutSeconds: 5
 
 ## Persist data to a persitent volume
 persistence: