summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthieuGeerebaert <matthieu.geerebaert@orange.com>2018-10-05 14:52:50 +0200
committerMatthieuGeerebaert <matthieu.geerebaert@orange.com>2018-10-05 15:07:17 +0200
commita3adffdb510995712004f1dc89598dd2f506db14 (patch)
tree3a8e7f89c3cdcdc4e18086e0377552bfdaf485e7
parente74509ca3d7fcefdd79117241ad6704c957e5572 (diff)
Container restart loop
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>
-rw-r--r--kubernetes/nbi/values.yaml14
1 files changed, 10 insertions, 4 deletions
diff --git a/kubernetes/nbi/values.yaml b/kubernetes/nbi/values.yaml
index 703398d71e..f904b4cece 100644
--- a/kubernetes/nbi/values.yaml
+++ b/kubernetes/nbi/values.yaml
@@ -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: {}