updating e2mgr configmap + e2term deployment.yaml, adding service-sctp.yaml
[ric-plt/ric-dep.git] / helm / 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|1200|{{ include "common.servicename.rsm.rmr" .     }}.{{ include "common.namespace.platform" . }}:{{ include "common.serviceport.rsm.rmr.data" . }}
33     rte|1210|{{ include "common.servicename.rsm.rmr" .     }}.{{ include "common.namespace.platform" . }}:{{ include "common.serviceport.rsm.rmr.data" . }}
34     rte|1220|{{ include "common.servicename.rsm.rmr" .     }}.{{ include "common.namespace.platform" . }}:{{ include "common.serviceport.rsm.rmr.data" . }}
35     rte|10020|{{ include "common.servicename.e2mgr.rmr" .      }}.{{ include "common.namespace.platform" . }}:{{ include "common.serviceport.e2mgr.rmr.data" . }}
36     rte|10060|{{ include "common.servicename.e2term.rmr" .     }}.{{ include "common.namespace.platform" . }}:{{ include "common.serviceport.e2term.rmr.data" . }}
37     rte|10061|{{ include "common.servicename.e2mgr.rmr" .      }}.{{ include "common.namespace.platform" . }}:{{ include "common.serviceport.e2mgr.rmr.data" . }}
38     rte|10062|{{ include "common.servicename.e2mgr.rmr" .      }}.{{ include "common.namespace.platform" . }}:{{ include "common.serviceport.e2mgr.rmr.data" . }}
39     rte|10070|{{ include "common.servicename.e2term.rmr" .     }}.{{ include "common.namespace.platform" . }}:{{ include "common.serviceport.e2term.rmr.data" . }}
40     rte|10071|{{ include "common.servicename.e2term.rmr" .     }}.{{ include "common.namespace.platform" . }}:{{ include "common.serviceport.e2term.rmr.data" . }}
41     rte|10080|{{ include "common.servicename.e2mgr.rmr" .      }}.{{ include "common.namespace.platform" . }}:{{ include "common.serviceport.e2mgr.rmr.data" . }}
42     rte|10360|{{ include "common.servicename.e2term.rmr" .     }}.{{ include "common.namespace.platform" . }}:{{ include "common.serviceport.e2term.rmr.data" . }}
43     rte|10361|{{ include "common.servicename.e2mgr.rmr" .      }}.{{ include "common.namespace.platform" . }}:{{ include "common.serviceport.e2mgr.rmr.data" . }}
44     rte|10362|{{ include "common.servicename.e2mgr.rmr" .      }}.{{ include "common.namespace.platform" . }}:{{ include "common.serviceport.e2mgr.rmr.data" . }}
45     rte|10370|{{ include "common.servicename.e2mgr.rmr" .      }}.{{ include "common.namespace.platform" . }}:{{ include "common.serviceport.e2mgr.rmr.data" . }}
46     rte|10371|{{ include "common.servicename.e2term.rmr" .     }}.{{ include "common.namespace.platform" . }}:{{ include "common.serviceport.e2term.rmr.data" . }}
47     rte|12010|{{ include "common.servicename.e2term.rmr" .     }}.{{ include "common.namespace.platform" . }}:{{ include "common.serviceport.e2term.rmr.data" . }}
48     rte|12020|{{ include "common.servicename.e2term.rmr" .     }}.{{ include "common.namespace.platform" . }}:{{ include "common.serviceport.e2term.rmr.data" . }}
49     rte|20001|{{ include "common.servicename.a1mediator.rmr" . }}.{{ include "common.namespace.platform" . }}:{{ include "common.serviceport.a1mediator.rmr.data" . }}
50     newrt|end
51
52 ---
53
54 apiVersion: v1
55 kind: ConfigMap
56 metadata:
57   name: {{ include "common.configmapname.e2mgr" . }}-configuration-configmap
58   namespace: {{ include "common.namespace.platform" . }}
59 data:
60   configuration.yaml: |
61     logging:
62       {{- if hasKey .Values.e2mgr "logLevel" }}
63       logLevel: {{ .Values.e2mgr.logLevel }}
64       {{- else }}
65       logLevel:  "info" 
66       {{- end }}     
67     http:
68       {{- if hasKey .Values.e2mgr "httpPort" }}
69       port: {{ .Values.e2mgr.httpPort }}
70       {{- else }}
71       port: 3800
72       {{- end }}
73     rmr:
74       {{- if hasKey .Values.e2mgr "rmrPort" }}
75       port: {{ .Values.e2mgr.rmrPort }}
76       {{- else }}
77       port: 3801
78       {{- end }}
79       {{- if hasKey .Values.e2mgr "maxMsgSize" }}
80       maxMsgSize: {{ .Values.e2mgr.maxMsgSize }}
81       {{- else }}
82       maxMsgSize: 65536 
83       {{- end }}
84
85     routingManager:
86       {{- if hasKey .Values.e2mgr "baseUrl" }}
87       baseUrl: {{ .Values.e2mgr.baseUrl }}
88       {{- else }}
89       baseUrl: "http://service-ricplt-rtmgr-http:3800/ric/v1/handles/"
90       {{- end }}
91
92     {{- if hasKey .Values.e2mgr "notificationResponseBuffer" }}
93     notificationResponseBuffer: {{ .Values.e2mgr.notificationResponseBuffer }}
94     {{- else }}
95     notificationResponseBuffer: 100
96     {{- end }} 
97
98     {{- if hasKey .Values.e2mgr "bigRedButtonTimeoutSec" }}
99     bigRedButtonTimeoutSec: {{ .Values.e2mgr.bigRedButtonTimeoutSec }}
100     {{- else }}
101     bigRedButtonTimeoutSec: 5
102     {{- end }}   
103
104     {{- if hasKey .Values.e2mgr "maxConnectionAttempts" }}
105     maxConnectionAttempts: {{ .Values.e2mgr.maxConnectionAttempts }}
106     {{- else }} 
107     maxConnectionAttempts: 3
108     {{- end }}       
109     
110     {{- if hasKey .Values.e2mgr "maxRnibConnectionAttempts" }}
111     maxRnibConnectionAttempts: {{ .Values.e2mgr.maxRnibConnectionAttempts }}
112     {{- else }} 
113     maxRnibConnectionAttempts: 3
114     {{- end }}   
115
116     {{- if hasKey .Values.e2mgr "rnibRetryIntervalMs" }}
117     rnibRetryIntervalMs: {{ .Values.e2mgr.rnibRetryIntervalMs }}
118     {{- else }} 
119     rnibRetryIntervalMs: 10
120     {{- end }}
121
122     {{- if hasKey .Values.e2mgr "keepAliveResponseTimeoutMs" }}
123     keepAliveResponseTimeoutMs: {{ .Values.e2mgr.keepAliveResponseTimeoutMs }}
124     {{- else }}
125     keepAliveResponseTimeoutMs: 360000
126     {{- end }}
127
128     {{- if hasKey .Values.e2mgr "keepAliveDelayMs" }}
129     keepAliveDelayMs: {{ .Values.e2mgr.keepAliveDelayMs }}
130     {{- else }}
131     keepAliveDelayMs: 120000
132     {{- end }}
133
134     globalRicId:
135       {{- if hasKey .Values.e2mgr "plmnId" }}
136       plmnId: {{ .Values.e2mgr.plmnId }}
137       {{- else }}
138       plmnId: 131014
139       {{- end }}
140       {{- if hasKey .Values.e2mgr "ricNearRtId" }}
141       ricNearRtId: {{ .Values.e2mgr.ricNearRtId }}
142       {{- else }}
143       ricNearRtId: 556670
144       {{- end }}
145 ---