Near RT RIC Platform new-installer initial release
[ric-plt/ric-dep.git] / new-installer / helm / charts / nearrtric / e2mgr / templates / configmap.yaml
1 ################################################################################
2 #   Copyright (c) 2019 AT&T Intellectual Property.                             #
3 #   Copyright (c) 2019 Nokia.                                                  #
4 #                                                                              #
5 #   Licensed under the Apache License, Version 2.0 (the "License");            #
6 #   you may not use this file except in compliance with the License.           #
7 #   You may obtain a copy of the License at                                    #
8 #                                                                              #
9 #       http://www.apache.org/licenses/LICENSE-2.0                             #
10 #                                                                              #
11 #   Unless required by applicable law or agreed to in writing, software        #
12 #   distributed under the License is distributed on an "AS IS" BASIS,          #
13 #   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   #
14 #   See the License for the specific language governing permissions and        #
15 #   limitations under the License.                                             #
16 ################################################################################
17 ---
18 apiVersion: v1
19 kind: ConfigMap
20 metadata:
21   name: {{ include "common.configmapname.e2mgr" . }}-router-configmap
22   namespace: {{ include "common.namespace.platform" . }}
23 data:
24   rmr_verbose: |
25     0
26   router.txt: |
27     newrt|start
28     rte|1080|{{ include "common.servicename.e2mgr.rmr" .      }}.{{ include "common.namespace.platform" . }}:{{ include "common.serviceport.e2mgr.rmr.data" . }}
29     rte|1090|{{ include "common.servicename.e2term.rmr" .     }}.{{ include "common.namespace.platform" . }}:{{ include "common.serviceport.e2term.rmr.data" . }}
30     rte|1100|{{ include "common.servicename.e2term.rmr" .     }}.{{ include "common.namespace.platform" . }}:{{ include "common.serviceport.e2term.rmr.data" . }}
31     rte|1101|{{ include "common.servicename.e2term.rmr" .     }}.{{ include "common.namespace.platform" . }}:{{ include "common.serviceport.e2term.rmr.data" . }}
32     rte|10020|{{ include "common.servicename.e2mgr.rmr" .      }}.{{ include "common.namespace.platform" . }}:{{ include "common.serviceport.e2mgr.rmr.data" . }}
33     rte|10060|{{ include "common.servicename.e2term.rmr" .     }}.{{ include "common.namespace.platform" . }}:{{ include "common.serviceport.e2term.rmr.data" . }}
34     rte|10061|{{ include "common.servicename.e2mgr.rmr" .      }}.{{ include "common.namespace.platform" . }}:{{ include "common.serviceport.e2mgr.rmr.data" . }}
35     rte|10062|{{ include "common.servicename.e2mgr.rmr" .      }}.{{ include "common.namespace.platform" . }}:{{ include "common.serviceport.e2mgr.rmr.data" . }}
36     rte|10070|{{ include "common.servicename.e2term.rmr" .     }}.{{ include "common.namespace.platform" . }}:{{ include "common.serviceport.e2term.rmr.data" . }}
37     rte|10071|{{ include "common.servicename.e2term.rmr" .     }}.{{ include "common.namespace.platform" . }}:{{ include "common.serviceport.e2term.rmr.data" . }}
38     rte|10080|{{ include "common.servicename.e2mgr.rmr" .      }}.{{ include "common.namespace.platform" . }}:{{ include "common.serviceport.e2mgr.rmr.data" . }}
39     rte|10360|{{ include "common.servicename.e2term.rmr" .     }}.{{ include "common.namespace.platform" . }}:{{ include "common.serviceport.e2term.rmr.data" . }}
40     rte|10361|{{ include "common.servicename.e2mgr.rmr" .      }}.{{ include "common.namespace.platform" . }}:{{ include "common.serviceport.e2mgr.rmr.data" . }}
41     rte|10362|{{ include "common.servicename.e2mgr.rmr" .      }}.{{ include "common.namespace.platform" . }}:{{ include "common.serviceport.e2mgr.rmr.data" . }}
42     rte|10370|{{ include "common.servicename.e2mgr.rmr" .      }}.{{ include "common.namespace.platform" . }}:{{ include "common.serviceport.e2mgr.rmr.data" . }}
43     rte|10371|{{ include "common.servicename.e2term.rmr" .     }}.{{ include "common.namespace.platform" . }}:{{ include "common.serviceport.e2term.rmr.data" . }}
44     rte|12010|{{ include "common.servicename.e2term.rmr" .     }}.{{ include "common.namespace.platform" . }}:{{ include "common.serviceport.e2term.rmr.data" . }}
45     rte|12020|{{ include "common.servicename.e2term.rmr" .     }}.{{ include "common.namespace.platform" . }}:{{ include "common.serviceport.e2term.rmr.data" . }}
46     rte|20001|{{ include "common.servicename.a1mediator.rmr" . }}.{{ include "common.namespace.platform" . }}:{{ include "common.serviceport.a1mediator.rmr.data" . }}
47     newrt|end
48
49 ---
50
51 apiVersion: v1
52 kind: ConfigMap
53 metadata:
54   name: {{ include "common.configmapname.e2mgr" . }}-configuration-configmap
55   namespace: {{ include "common.namespace.platform" . }}
56 data:
57   configuration.yaml: |
58     logging:
59       {{- if hasKey .Values.e2mgr "logLevel" }}
60       logLevel: {{ .Values.e2mgr.logLevel }}
61       {{- else }}
62       logLevel:  "info"
63       {{- end }}
64     http:
65       {{- if hasKey .Values.e2mgr "httpPort" }}
66       port: {{ .Values.e2mgr.httpPort }}
67       {{- else }}
68       port: 3800
69       {{- end }}
70     rmr:
71       {{- if hasKey .Values.e2mgr "rmrPort" }}
72       port: {{ .Values.e2mgr.rmrPort }}
73       {{- else }}
74       port: 3801
75       {{- end }}
76       {{- if hasKey .Values.e2mgr "maxMsgSize" }}
77       maxMsgSize: {{ .Values.e2mgr.maxMsgSize }}
78       {{- else }}
79       maxMsgSize: 65536
80       {{- end }}
81
82     routingManager:
83       {{- if hasKey .Values.e2mgr "baseUrl" }}
84       baseUrl: {{ .Values.e2mgr.baseUrl }}
85       {{- else }}
86       baseUrl: "http://service-ricplt-rtmgr-http:3800/ric/v1/handles/"
87       {{- end }}
88
89     {{- if hasKey .Values.e2mgr "notificationResponseBuffer" }}
90     notificationResponseBuffer: {{ .Values.e2mgr.notificationResponseBuffer }}
91     {{- else }}
92     notificationResponseBuffer: 100
93     {{- end }}
94
95     {{- if hasKey .Values.e2mgr "bigRedButtonTimeoutSec" }}
96     bigRedButtonTimeoutSec: {{ .Values.e2mgr.bigRedButtonTimeoutSec }}
97     {{- else }}
98     bigRedButtonTimeoutSec: 5
99     {{- end }}
100
101     {{- if hasKey .Values.e2mgr "maxConnectionAttempts" }}
102     maxConnectionAttempts: {{ .Values.e2mgr.maxConnectionAttempts }}
103     {{- else }}
104     maxConnectionAttempts: 3
105     {{- end }}
106
107     {{- if hasKey .Values.e2mgr "maxRnibConnectionAttempts" }}
108     maxRnibConnectionAttempts: {{ .Values.e2mgr.maxRnibConnectionAttempts }}
109     {{- else }}
110     maxRnibConnectionAttempts: 3
111     {{- end }}
112
113     {{- if hasKey .Values.e2mgr "rnibRetryIntervalMs" }}
114     rnibRetryIntervalMs: {{ .Values.e2mgr.rnibRetryIntervalMs }}
115     {{- else }}
116     rnibRetryIntervalMs: 10
117     {{- end }}
118
119     {{- if hasKey .Values.e2mgr "keepAliveResponseTimeoutMs" }}
120     keepAliveResponseTimeoutMs: {{ .Values.e2mgr.keepAliveResponseTimeoutMs }}
121     {{- else }}
122     keepAliveResponseTimeoutMs: 360000
123     {{- end }}
124
125     {{- if hasKey .Values.e2mgr "keepAliveDelayMs" }}
126     keepAliveDelayMs: {{ .Values.e2mgr.keepAliveDelayMs }}
127     {{- else }}
128     keepAliveDelayMs: 120000
129     {{- end }}
130
131     globalRicId:
132       {{- if hasKey .Values.e2mgr "ricId" }}
133       ricId: {{ .Values.e2mgr.ricId }}
134       {{- else }}
135       ricId: "AACCE"
136       {{- end }}
137       {{- if hasKey .Values.e2mgr "mcc" }}
138       mcc: {{ .Values.e2mgr.mcc }}
139       {{- else }}
140       mcc: "310"
141       {{- end }}
142       {{- if hasKey .Values.e2mgr "mnc" }}
143       mnc: {{ .Values.e2mgr.mnc }}
144       {{- else }}
145       mnc: "411"
146       {{- end }}
147
148     rnibWriter:
149       {{- if hasKey .Values.e2mgr "stateChangeMessageChannel" }}
150       stateChangeMessageChannel: {{ .Values.e2mgr.stateChangeMessageChannel }}
151       {{- else }}
152       stateChangeMessageChannel: "RAN_CONNECTION_STATUS_CHANGE"
153       {{- end }}
154       {{- if hasKey .Values.e2mgr "ranManipulationMessageChannel" }}
155       ranManipulationMessageChannel: {{ .Values.e2mgr.ranManipulationMessageChannel }}
156       {{- else }}
157       ranManipulationMessageChannel: "RAN_MANIPULATION"
158       {{- end }}
159
160 ---