integrate with xapp-frame v0.8.3
[ric-app/rc.git] / xapp-descriptor / config.json
index a0dbd79..65bd1ec 100644 (file)
@@ -1,46 +1,73 @@
-{\r
-  "xapp_name": "rc",\r
-  "version": "1.0.0",\r
-  "configPath": "/opt/ric/config/",\r
-  "containers": [\r
-    {\r
-      "name": "rc",\r
-      "image": {\r
-        "registry": "nexus3.o-ran-sc.org:10002",\r
-        "name": "o-ran-sc/ric-app-rc",\r
-        "tag": "1.0.0"\r
-      }\r
-    }\r
-  ],\r
-  "messaging": {\r
-    "ports": [\r
-      {\r
-        "name": "rmr-data",\r
-        "container": "rc",\r
-        "port": 4560,\r
-        "rxMessages": ["RIC_CONTROL_RESP"],\r
-        "txMessages": ["RIC_CONTROL_REQ"],\r
-        "policies": [],\r
-        "description": "rmr receive data port for rc"\r
-      },\r
-      {\r
-        "name": "rmr-route",\r
-        "container": "rc",\r
-        "port": 4561,\r
-        "description": "rmr route port for rc"\r
-      }\r
-    ]\r
-  },\r
-  "rmr": {\r
-    "protPort": "tcp:4560",\r
-    "maxSize": 2072,\r
-    "numWorkers": 1,\r
-    "rxMessages": ["RIC_CONTROL_RESP"],\r
-    "txMessages": ["RIC_CONTROL_REQ"],\r
-    "policies": []\r
-  },\r
-  "controls": {\r
-    "ricHOControlgRpcServerPort" : "7777"\r
-}\r
-\r
-}\r
+{
+  "xapp_name": "rc",
+  "version": "1.0.0",
+  "containers": [
+    {
+      "name": "rc",
+      "image": {
+        "registry": "nexus3.o-ran-sc.org:10002",
+        "name": "o-ran-sc/ric-app-rc",
+        "tag": "1.0.0"
+      }
+    }
+  ],
+  "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
+    },
+  "messaging": {
+    "ports": [
+     {
+       "name": "http",
+       "container": "rchandler",
+       "port": 8080,
+       "description": "http service"
+     },
+     {
+       "name": "grpc-server",
+       "container": "rc",
+       "port": 7777,
+       "targetPort": 7777
+     },             
+     {
+        "name": "rmr-data",
+        "container": "rc",
+        "port": 4560,
+        "rxMessages": ["RIC_CONTROL_ACK, RIC_CONTROL_FAILURE, RIC_ERROR_INDICATION"],
+        "txMessages": ["RIC_CONTROL_REQ"],
+        "policies": [],
+        "description": "rmr receive data port for rc"
+      },
+      {
+        "name": "rmr-route",
+        "container": "rc",
+        "port": 4561,
+        "description": "rmr route port for rc"
+      }
+    ]
+  },
+  "rmr": {
+    "protPort": "tcp:4560",
+    "maxSize": 2072,
+    "numWorkers": 1,
+    "rxMessages": ["RIC_CONTROL_ACK, RIC_CONTROL_FAILURE, RIC_ERROR_INDICATION"],
+    "txMessages": ["RIC_CONTROL_REQ"],
+    "policies": []
+  },
+   "controls": {
+          "ricHOControlgRpcServerPort" : "7777",
+          "logLevel": 4
+   }
+}