+{{- define "common.name.submgr" -}}
+ {{- if .Values.submgr -}}
+ {{- if .Values.submgr.nameOverride -}}
+ {{- printf "%s" .Values.submgr.nameOverride -}}
+ {{- else -}}
+ {{- printf "submgr" -}}
+ {{- end -}}
+ {{- else -}}
+ {{- printf "submgr" -}}
+ {{- end -}}
+{{- end -}}
+
+
+{{- define "common.fullname.submgr" -}}
+ {{- $name := ( include "common.name.submgr" . ) -}}
+ {{- $namespace := ( include "common.namespace.platform" . ) -}}
+ {{- printf "%s-%s" $namespace $name | trunc 63 | trimSuffix "-" -}}
+{{- end -}}
+
+
+
+
+
+
{{- define "common.name.a1mediator" -}}
{{- if .Values.a1mediator -}}
{{- if .Values.a1mediator.nameOverride -}}
{{- printf "service-%s-rmr" $name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
+{{- define "common.servicename.submgr.rmr" -}}
+ {{- $name := ( include "common.fullname.submgr" . ) -}}
+ {{- printf "service-%s-rmr" $name | trunc 63 | trimSuffix "-" -}}
+{{- end -}}
+
{{- define "common.servicename.a1mediator.rmr" -}}
{{- $name := ( include "common.fullname.a1mediator" . ) -}}
{{- printf "service-%s-rmr" $name | trunc 63 | trimSuffix "-" -}}
--- /dev/null
+#
+#==================================================================================
+# Copyright (c) 2019 AT&T Intellectual Property.
+# Copyright (c) 2019 Nokia
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#==================================================================================
+#
+#
+# Abstract: Configuration values for the routing manager
+# Date: 29 May 2019
+#
+apiVersion: v1
+kind: ConfigMap
+metadata:
+ name: {{ include "common.configmapname.rtmgr" . }}-rtmgrcfg
+data:
+ # FQDN and port info of the platform components for routing manager to form
+ # and distribute corresponding routes to them
+ rtmgrcfg: |
+ {
+ "PlatformComponents":
+ [
+ {
+ "name": "E2TERM",
+ "fqdn": "{{ include "common.servicename.e2term.rmr" . }}",
+ "port": 4561
+ },
+ {
+ "name": "SUBMAN",
+ "fqdn": "{{ include "common.servicename.submgr.rmr" . }}",
+ "port": 4561
+ },
+ {
+ "name": "E2MAN",
+ "fqdn": "{{ include "common.servicename.e2mgr.rmr" . }}",
+ "port": 4561
+ }
+ ]
+ }
+
image: {{ include "common.repository" . }}/{{ .Values.rtmgr.image.name }}:{{ .Values.rtmgr.image.tag }}
imagePullPolicy: {{ include "common.pullPolicy" . }}
command: ["/run_rtmgr.sh"]
+ #command: ["/bin/sh"]
+ #args: ["-c", "while true; do echo hello; sleep 10;done"]
envFrom:
- configMapRef:
name: {{ include "common.configmapname.rtmgr" . }}-env
+ volumeMounts:
+ - mountPath: /cfg
+ name: rtmgrcfg
+ readOnly: true
ports:
- name: "rmrroute"
containerPort: {{ .Values.rtmgr.service.rmr.route.port }}
- name: "rmrdata"
containerPort: {{ .Values.rtmgr.service.rmr.data.port }}
+ volumes:
+ - name: "rtmgrcfg"
+ configMap:
+ name: {{ include "common.configmapname.rtmgr" . }}-rtmgrcfg
+ items:
+ - key: rtmgrcfg
+ path: rtmgr-config.json
+ mode: 0644
-################################################################################
+###############################################################################
# Copyright (c) 2019 AT&T Intellectual Property. #
# Copyright (c) 2019 Nokia. #
# #
DBAAS_PORT_6379_TCP_PORT: "6379"
RMR_RTG_SVC: "{{ .Values.rtmgr.service.rmr.route.port }}"
XMURL: "http://{{ include "common.servicename.appmgr.http" . }}:8080/ric/v1/xapps"
- SOCKET: "tcp://0.0.0.0:4560"
RTFILE: "/db/rt.json"
- NBI: "httpGetter"
- SBI: "nngpub"
- RPE: "rmr"
- SDL: "file"
+ CFGFILE: "/cfg/rtmgr-config.json"
+ RPE: "{{ .Values.rtmgr.rpe }}"
+ SBI: "{{ .Values.rtmgr.sbi }}"
+ SBIURL: "{{ .Values.rtmgr.sbiurl }}"
+ NBI: "{{ .Values.rtmgr.nbi }}"
+ NBIURL: "{{ .Values.rtmgr.nbiurl }}"
+ LOGLEVEL: "{{ .Values.rtmgr.loglevel }}"
+
port: 4561
data:
port: 4560
+
+ rpe: rmrpush
+ sbi: nngpush
+ sbiurl: 0.0.0.0
+ nbi: httpRESTful
+ nbiurl: http://0.0.0.0:8888
+ loglevel: DEBUG
+