aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/common
diff options
context:
space:
mode:
authoryangyan <yangyanyj@chinamobile.com>2019-05-22 13:04:15 +0800
committeryangyan <yangyanyj@chinamobile.com>2019-05-22 13:04:22 +0800
commite63c92104d49593e825c4775143a68912f3a6a3c (patch)
tree43b5444be0da7321d1e25c101f2c005e6a2eddbb /kubernetes/common
parent526f27fa78d6504301b4d1b33bd70ea7f1a0c5f7 (diff)
add timeout for mariadb readiness
Issue-ID: VFC-1392 Change-Id: I8b4a97dbac6245c7747a31fdc557ffd8d9a974d5 Signed-off-by: yangyan <yangyanyj@chinamobile.com>
Diffstat (limited to 'kubernetes/common')
-rw-r--r--kubernetes/common/mariadb-galera/templates/statefulset.yaml1
-rw-r--r--kubernetes/common/mariadb-galera/values.yaml1
2 files changed, 2 insertions, 0 deletions
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: