RMR Message Type configurable and added liveness/readiness check for rtmgr
[ric-plt/ric-dep.git] / helm / rtmgr / templates / deployment.yaml
index 56a271b..7854a89 100644 (file)
@@ -55,6 +55,8 @@ spec:
           envFrom:
             - configMapRef:
                 name: {{ include "common.configmapname.rtmgr" . }}-env
+            - configMapRef:
+                name: {{ include "common.configmapname.dbaas" . }}-appconfig
           volumeMounts:
             - mountPath: /cfg
               name: rtmgrcfg
@@ -66,6 +68,21 @@ spec:
               containerPort: {{ include "common.serviceport.rtmgr.rmr.route" . }}
             - name: "rmrdata"
               containerPort: {{ include "common.serviceport.rtmgr.rmr.data" . }}
+
+          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: "rtmgrcfg"
           configMap: