From b2006a02fb4d6bd100bcfbbe8ffe85ce6c616c08 Mon Sep 17 00:00:00 2001 From: Sameer Naik Date: Wed, 7 Jun 2017 00:08:02 +0000 Subject: [PATCH] opencart: fix probes to properly query pod health (#1166) --- stable/opencart/templates/deployment.yaml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/stable/opencart/templates/deployment.yaml b/stable/opencart/templates/deployment.yaml index bd68d92160..853c306d3c 100644 --- a/stable/opencart/templates/deployment.yaml +++ b/stable/opencart/templates/deployment.yaml @@ -59,16 +59,24 @@ spec: containerPort: 443 livenessProbe: httpGet: - path: / + path: /admin/ port: http + httpHeaders: + - name: Host + value: {{ include "host" . | quote }} initialDelaySeconds: 120 timeoutSeconds: 5 + failureThreshold: 6 readinessProbe: httpGet: - path: / + path: /admin/ port: http - initialDelaySeconds: 5 - timeoutSeconds: 1 + httpHeaders: + - name: Host + value: {{ include "host" . | quote }} + initialDelaySeconds: 30 + timeoutSeconds: 3 + periodSeconds: 5 resources: {{ toYaml .Values.resources | indent 10 }} volumeMounts: