From 151326a8f10a3088d6dc1a7638151deadb168624 Mon Sep 17 00:00:00 2001 From: Katri Turunen Date: Tue, 17 Sep 2019 10:45:37 +0300 Subject: [PATCH] Add liveness probe Change-Id: I9c055408f76d49102a0ea14f17f2fd0d1d0a87ab Signed-off-by: Katri Turunen --- README.md | 4 ++++ container-tag.yaml | 2 +- ves-agent-chart/templates/deployment.yaml | 8 +++++++- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index dc023a2..96a22cc 100644 --- a/README.md +++ b/README.md @@ -68,6 +68,10 @@ The VESPA manager container requires the following environment variables: * VESMGR_APPMGRDOMAIN - Application manager domain. This is for testing purposes, only. Default: service-ricplt-appmgr-http.ricplt.svc.cluster.local. +# Liveness probe + +The VESPA manager replies to liveness HTTP GET at path /supervision. + # Unit Tests In order to run the VESPA manager unit tests, give the following command: diff --git a/container-tag.yaml b/container-tag.yaml index ecf26ca..f5eba34 100644 --- a/container-tag.yaml +++ b/container-tag.yaml @@ -1,4 +1,4 @@ # The Jenkins job uses this string for the tag in the image name # for example nexus3.o-ran-sc.org:10004/my-image-name:0.0.1 --- -tag: 0.0.1 +tag: 0.0.2 diff --git a/ves-agent-chart/templates/deployment.yaml b/ves-agent-chart/templates/deployment.yaml index 5f9e0ca..fcd54bb 100644 --- a/ves-agent-chart/templates/deployment.yaml +++ b/ves-agent-chart/templates/deployment.yaml @@ -51,4 +51,10 @@ spec: env: - name: VESMGR_APPMGRDOMAIN value: appmgr-service - + livenessProbe: + httpGet: + path: /supervision + port: 8080 + initialDelaySeconds: 30 + periodSeconds: 60 + timeoutSeconds: 20 -- 2.16.6