Extend K8S and RIC installation instructions
[it/dep.git] / ric-platform / 50-RIC-Platform / 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: 4096
83       {{- end }}
84     routingManager:
85       {{- if hasKey .Values.e2mgr "baseUrl" }}
86       baseUrl: {{ .Values.e2mgr.baseUrl }}
87       {{- else }}
88       baseUrl: "http://service-ricplt-rtmgr-http:3800/ric/v1/handles/"
89       {{- end }}
90
91     {{- if hasKey .Values.e2mgr "notificationResponseBuffer" }}
92     notificationResponseBuffer: {{ .Values.e2mgr.notificationResponseBuffer }}
93     {{- else }}
94     notificationResponseBuffer: 100
95     {{- end }} 
96
97     {{- if hasKey .Values.e2mgr "bigRedButtonTimeoutSec" }}
98     bigRedButtonTimeoutSec: {{ .Values.e2mgr.bigRedButtonTimeoutSec }}
99     {{- else }}
100     bigRedButtonTimeoutSec: 5
101     {{- end }}   
102
103     {{- if hasKey .Values.e2mgr "maxConnectionAttempts" }}
104     maxConnectionAttempts: {{ .Values.e2mgr.maxConnectionAttempts }}
105     {{- else }} 
106     maxConnectionAttempts: 3
107     {{- end }}       
108     
109     {{- if hasKey .Values.e2mgr "maxRnibConnectionAttempts" }}
110     maxRnibConnectionAttempts: {{ .Values.e2mgr.maxRnibConnectionAttempts }}
111     {{- else }} 
112     maxRnibConnectionAttempts: 3
113     {{- end }}   
114
115     {{- if hasKey .Values.e2mgr "rnibRetryIntervalMs" }}
116     rnibRetryIntervalMs: {{ .Values.e2mgr.rnibRetryIntervalMs }}
117     {{- else }} 
118     rnibRetryIntervalMs: 10
119     {{- end }}
120
121     {{- if hasKey .Values.e2mgr "keepAliveResponseTimeoutMs" }}
122     keepAliveResponseTimeoutMs: {{ .Values.e2mgr.keepAliveResponseTimeoutMs }}
123     {{- else }}
124     keepAliveResponseTimeoutMs: 4500
125     {{- end }}
126
127     {{- if hasKey .Values.e2mgr "keepAliveDelayMs" }}
128     keepAliveDelayMs: {{ .Values.e2mgr.keepAliveDelayMs }}
129     {{- else }}
130     keepAliveDelayMs: 1500
131     {{- end }}
132
133 ---