From fc613919f8b83d9dfddecfde878640491dc1cf7d Mon Sep 17 00:00:00 2001
From: Siamak Sadeghianfar <siamaksade@gmail.com>
Date: Fri, 2 Mar 2018 13:36:19 +0100
Subject: [PATCH] updated probles for gateway

---
 openshift/coolstore-deployment-template.yaml | 28 +++++++-------------
 1 file changed, 9 insertions(+), 19 deletions(-)

diff --git a/openshift/coolstore-deployment-template.yaml b/openshift/coolstore-deployment-template.yaml
index 685769e..4e40118 100644
--- a/openshift/coolstore-deployment-template.yaml
+++ b/openshift/coolstore-deployment-template.yaml
@@ -157,29 +157,19 @@ objects:
             value: "true"
           image: ' '
           livenessProbe:
-            exec:
-              command:
-                - curl
-                - '-f'
-                - 'http://localhost:8081/health'
-            initialDelaySeconds: 30
-            failureThreshold: 10
-            periodSeconds: 10
-            timeoutSeconds: 5
+            httpGet:
+              path: /health
+              port: 8080
+            initialDelaySeconds: 60
+          readinessProbe:
+            httpGet:
+              path: /health
+              port: 8080
+            initialDelaySeconds: 10
           name: coolstore-gw
           ports:
           - containerPort: 8778
             name: jolokia
-          readinessProbe:
-            exec:
-              command:
-                - curl
-                - '-f'
-                - 'http://localhost:8081/health'
-            initialDelaySeconds: 30
-            failureThreshold: 10
-            periodSeconds: 10
-            timeoutSeconds: 5
           resources:
             limits:
               cpu: 1