From f20b0d1afa4f302873f3570faab851363718dd76 Mon Sep 17 00:00:00 2001 From: Juha Hyttinen Date: Fri, 3 Apr 2020 10:13:44 +0300 Subject: [PATCH] submgr initial RMR_SEED_RT and use directly binary in container command Change-Id: Id2aba8eca8b4d166b7268af4af9c6a71c2859913 Signed-off-by: Juha Hyttinen --- helm/submgr/templates/configmap.yaml | 5 ++++- helm/submgr/templates/deployment.yaml | 7 +++++-- helm/submgr/templates/env.yaml | 3 ++- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/helm/submgr/templates/configmap.yaml b/helm/submgr/templates/configmap.yaml index a8ee386..92c3f8d 100644 --- a/helm/submgr/templates/configmap.yaml +++ b/helm/submgr/templates/configmap.yaml @@ -27,9 +27,12 @@ data: "level": 3 "rmr": "protPort" : "tcp:4560" - "maxSize": 2072 + "maxSize": 8192 "numWorkers": 1 "rtmgr": "hostAddr": {{ include "common.servicename.rtmgr.http" . | quote }} "port" : {{ include "common.serviceport.rtmgr.http" . }} "baseUrl" : "/ric/v1" + submgrutartg: | + newrt|start + newrt|end diff --git a/helm/submgr/templates/deployment.yaml b/helm/submgr/templates/deployment.yaml index c566073..49db0ee 100644 --- a/helm/submgr/templates/deployment.yaml +++ b/helm/submgr/templates/deployment.yaml @@ -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 @@ -77,4 +78,6 @@ spec: - key: submgrcfg path: submgr-config.yaml mode: 0644 - + - key: submgrutartg + path: submgr-uta-rtg.rt + mode: 0644 diff --git a/helm/submgr/templates/env.yaml b/helm/submgr/templates/env.yaml index 6dbd565..4d40840 100644 --- a/helm/submgr/templates/env.yaml +++ b/helm/submgr/templates/env.yaml @@ -21,5 +21,6 @@ metadata: data: RMR_RTG_SVC: {{ include "common.serviceport.submgr.rmr.route" . | quote }} RMR_SRC_ID: {{ include "common.servicename.submgr.rmr" . }}.{{ include "common.namespace.platform" . }} - CFGFILE: "/cfg/submgr-config.yaml" + CFG_FILE: "/cfg/submgr-config.yaml" + RMR_SEED_RT: "/cfg/submgr-uta-rtg.rt" SUBMGR_SEED_SN: "1" -- 2.16.6