Add timeout parameter for SDC-BE pod 67/89967/1
authorYang Xu <yang.xu@futurewei.com>
Mon, 17 Jun 2019 03:25:32 +0000 (23:25 -0400)
committerYang Xu <yang.xu@futurewei.com>
Mon, 17 Jun 2019 03:25:38 +0000 (23:25 -0400)
Signed-off-by: Yang Xu <yang.xu@futurewei.com>
Issue-ID: INT-1106
Change-Id: I09966ff3735a10342a6dd2e4a394eab95d46fb05

kubernetes/sdc/charts/sdc-be/templates/deployment.yaml
kubernetes/sdc/charts/sdc-be/values.yaml

index 063e2d8..0b015aa 100644 (file)
@@ -74,6 +74,7 @@ spec:
               - "/var/lib/ready-probe.sh"
             initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
             periodSeconds: {{ .Values.liveness.periodSeconds }}
+            timeoutSeconds: {{ .Values.liveness.timeoutSeconds }}
           {{ end }}
           readinessProbe:
             exec:
@@ -81,6 +82,7 @@ spec:
               - "/var/lib/ready-probe.sh"
             initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
             periodSeconds: {{ .Values.readiness.periodSeconds }}
+            timeoutSeconds: {{ .Values.readiness.timeoutSeconds }}
           resources:
 {{ include "common.resources" . | indent 12 }}
           env:
index 371acbb..018c379 100644 (file)
@@ -50,6 +50,7 @@ affinity: {}
 liveness:
   initialDelaySeconds: 60
   periodSeconds: 10
+  timeoutSeconds: 5
   # necessary to disable liveness probe when setting breakpoints
   # in debugger so K8s doesn't restart unresponsive container
   enabled: true
@@ -57,6 +58,7 @@ liveness:
 readiness:
   initialDelaySeconds: 60
   periodSeconds: 10
+  timeoutSeconds: 5
 
 service:
   type: NodePort