IssueId: RIC-149 Added liveness and readiness probe to the submgr deployment.yaml... 11/5011/1
authorSangeetha mani <sangeetha-kr@hcl.com>
Mon, 9 Nov 2020 08:21:38 +0000 (00:21 -0800)
committerSangeetha mani <sangeetha-kr@hcl.com>
Mon, 9 Nov 2020 08:21:38 +0000 (00:21 -0800)
Signed-off-by: Sangeetha mani <sangeetha-kr@hcl.com>
Change-Id: Ia257ebfcc67f9c47cfe5048e9902559a3020fb01

helm/submgr/templates/deployment.yaml

index 49db0ee..f9a1398 100644 (file)
@@ -70,6 +70,19 @@ spec:
           volumeMounts:
             - name: config-volume
               mountPath: /cfg
+          livenessProbe:
+            httpGet:
+              path: ric/v1/health/alive
+              port: 8080
+            initialDelaySeconds: 5
+            periodSeconds: 15
+          readinessProbe:
+            httpGet:
+              path: ric/v1/health/ready
+              port: 8080
+            initialDelaySeconds: 5
+            periodSeconds: 15
+
       volumes:
         - name: config-volume
           configMap: