From e63c92104d49593e825c4775143a68912f3a6a3c Mon Sep 17 00:00:00 2001 From: yangyan Date: Wed, 22 May 2019 13:04:15 +0800 Subject: add timeout for mariadb readiness Issue-ID: VFC-1392 Change-Id: I8b4a97dbac6245c7747a31fdc557ffd8d9a974d5 Signed-off-by: yangyan --- kubernetes/common/mariadb-galera/templates/statefulset.yaml | 1 + kubernetes/common/mariadb-galera/values.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/kubernetes/common/mariadb-galera/templates/statefulset.yaml b/kubernetes/common/mariadb-galera/templates/statefulset.yaml index 6dc5a7aad6..b0b7174811 100644 --- a/kubernetes/common/mariadb-galera/templates/statefulset.yaml +++ b/kubernetes/common/mariadb-galera/templates/statefulset.yaml @@ -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: diff --git a/kubernetes/common/mariadb-galera/values.yaml b/kubernetes/common/mariadb-galera/values.yaml index e4c6550f2b..d91f4fd1bb 100644 --- a/kubernetes/common/mariadb-galera/values.yaml +++ b/kubernetes/common/mariadb-galera/values.yaml @@ -57,6 +57,7 @@ liveness: readiness: initialDelaySeconds: 15 periodSeconds: 10 + timeoutSeconds: 5 ## Persist data to a persitent volume persistence: -- cgit 1.2.3-korg