Container restart loop 15/69915/2
authorMatthieuGeerebaert <matthieu.geerebaert@orange.com>
Fri, 5 Oct 2018 12:52:50 +0000 (14:52 +0200)
committerMatthieuGeerebaert <matthieu.geerebaert@orange.com>
Fri, 5 Oct 2018 13:07:17 +0000 (15:07 +0200)
The container restarts in a loop before being considered as living on slow labs.
Modified liveness and readiness probe

Change-Id: I780d9e36b30284857c3405f687295b755b0e702c
Issue-ID: EXTAPI-122
Signed-off-by: MatthieuGeerebaert <matthieu.geerebaert@orange.com>
kubernetes/nbi/values.yaml

index 703398d..f904b4c 100644 (file)
@@ -84,15 +84,21 @@ affinity: {}
 
 # probe configuration parameters
 liveness:
+  httpGet:
+    path: /nbi/api/v3/status
+    port: 8080
   initialDelaySeconds: 120
-  periodSeconds: 10
+  periodSeconds: 20
   # necessary to disable liveness probe when setting breakpoints
   # in debugger so K8s doesn't restart unresponsive container
   enabled: true
 
 readiness:
-  initialDelaySeconds: 10
-  periodSeconds: 10
+  httpGet:
+    path: /nbi/api/v3/status
+    port: 8080
+  initialDelaySeconds: 125
+  periodSeconds: 20
 
 service:
   type: NodePort
@@ -121,4 +127,4 @@ resources:
     requests:
       cpu: 200m
       memory: 2Gi
-  unlimited: {}
\ No newline at end of file
+  unlimited: {}