J release changes
[ric-plt/ric-dep.git] / helm / submgr / templates / deployment.yaml
index c566073..f9a1398 100644 (file)
@@ -50,7 +50,8 @@ spec:
         - name: {{ include "common.containername.submgr" . }}
           image: {{ include "common.dockerregistry.url" $imagectx }}/{{ .Values.submgr.image.name }}:{{ .Values.submgr.image.tag }}
           imagePullPolicy: {{ include "common.dockerregistry.pullpolicy" $pullpolicyctx }}
-          command: ["/run_submgr.sh"]
+          command: ["/submgr"]
+          args: ["-f", "/cfg/submgr-config.yaml"]
           envFrom:
             - configMapRef:
                 name: {{ include "common.configmapname.submgr" . }}-env
@@ -69,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:
@@ -77,4 +91,6 @@ spec:
               - key: submgrcfg
                 path: submgr-config.yaml
                 mode: 0644
-
+              - key: submgrutartg
+                path: submgr-uta-rtg.rt
+                mode: 0644