Merge "Enabling helm3 & kubernetes 1.18 for RIC"
[it/dep.git] / nonrtric / RECIPE_EXAMPLE / example_recipe.yaml
1 ################################################################################
2 #   Copyright (c) 2020 Nordix Foundation.                                      #
3 #                                                                              #
4 #   Licensed under the Apache License, Version 2.0 (the "License");            #
5 #   you may not use this file except in compliance with the License.           #
6 #   You may obtain a copy of the License at                                    #
7 #                                                                              #
8 #       http://www.apache.org/licenses/LICENSE-2.0                             #
9 #                                                                              #
10 #   Unless required by applicable law or agreed to in writing, software        #
11 #   distributed under the License is distributed on an "AS IS" BASIS,          #
12 #   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   #
13 #   See the License for the specific language governing permissions and        #
14 #   limitations under the License.                                             #
15 ################################################################################
16
17 #-------------------------------------------------------------------------
18 # Global common setting
19 #-------------------------------------------------------------------------
20
21 common:
22   releasePrefix: r2-dev-nonrtric
23 # Change the namespaces using the following options
24   namespace:
25     nonrtric: nonrtric
26
27 component: nonrtric
28
29 # A1 Conttroller may take few more minutes to start. Increase the initialDelaySeconds in liveness to avoid container restart.
30 a1controller:
31   a1controller:
32     imagePullPolicy: IfNotPresent
33     image:
34       registry: 'nexus3.o-ran-sc.org:10002/o-ran-sc'
35       name: nonrtric-a1-controller
36       tag: 2.0.1
37     replicaCount: 1
38     service:
39       allowHttp: true
40       httpName: http
41       internalPort1: 8282
42       targetPort1: 8181
43       httpsName: https
44       internalPort2: 8383
45       targetPort2: 8443
46     liveness:
47       initialDelaySeconds: 300
48       periodSeconds: 10
49     readiness:
50       initialDelaySeconds: 60
51       periodSeconds: 10
52
53 a1simulator:
54   a1simulator:
55     name: a1-sim
56     imagePullPolicy: IfNotPresent
57     image:
58       registry: 'nexus3.o-ran-sc.org:10002/o-ran-sc'
59       name: a1-simulator
60       tag: 2.0.0
61     service:
62       allowHttp: true
63       httpName: http
64       internalPort1: 8085
65       targetPort1: 8085
66       httpsName: https
67       internalPort2: 8185
68       targetPort2: 8185
69     liveness:
70       initialDelaySeconds: 20
71       periodSeconds: 10
72     readiness:
73       initialDelaySeconds: 20
74       periodSeconds: 10
75     oscVersion:
76       name: a1-sim-osc
77       replicaCount: 2
78     stdVersion:
79       name: a1-sim-std
80       replicaCount: 2
81
82 # image registry and tag to be changed after first release of controlpanel
83 # Need to check the external port Availability
84 controlpanel:
85   controlpanel:
86     imagePullPolicy: IfNotPresent
87     image:
88       registry: 'nexus3.o-ran-sc.org:10002/o-ran-sc'
89       name: nonrtric-controlpanel
90       tag: 2.0.0
91     replicaCount: 1
92     service:
93       allowHttp: true
94       httpName: http
95       internalPort1: 8080
96       targetPort1: 8080
97       externalPort1: 30091
98       httpsName: https
99       internalPort2: 8081
100       targetPort2: 8082
101       externalPort2: 30092
102     liveness:
103       initialDelaySeconds: 20
104       periodSeconds: 10
105     readiness:
106       initialDelaySeconds: 20
107       periodSeconds: 10
108
109 # Need to check the external port Availability
110 policymanagementservice:
111   policymanagementservice:
112     imagePullPolicy: IfNotPresent
113     image:
114       registry: 'nexus3.o-ran-sc.org:10002/o-ran-sc'
115       name: nonrtric-policy-agent
116       tag: 2.0.1
117     service:
118       allowHttp: true
119       httpName: http
120       internalPort1: 9080
121       targetPort1: 8081
122       externalPort1: 30093
123       httpsName: https
124       internalPort2: 9081
125       targetPort2: 8433
126       externalPort2: 30094
127     liveness:
128       initialDelaySeconds: 20
129       periodSeconds: 10
130     readiness:
131       initialDelaySeconds: 20
132       periodSeconds: 10
133     ric: |
134       [
135         {
136              "name":"ric1",
137              "baseUrl":"https://a1-sim-osc-0.a1-sim:8185",
138              "controller": "controller1",
139              "managedElementIds":[
140                 "kista_1",
141                 "kista_2"
142              ]
143           },
144           {
145             "name":"ric2",
146             "baseUrl":"https://a1-sim-osc-1.a1-sim:8185",
147             "controller": "controller1",
148             "managedElementIds":[
149                "kista_1",
150                "kista_2"
151             ]
152           },
153           {
154             "name":"ric3",
155             "baseUrl":"https://a1-sim-std-0.a1-sim:8185",
156             "controller": "controller1",
157             "managedElementIds":[
158                "kista_1",
159                "kista_2"
160             ]
161           },
162           {
163             "name":"ric4",
164             "baseUrl":"https://a1-sim-std-1.a1-sim:8185",
165             "controller": "controller1",
166             "managedElementIds":[
167                "kista_1",
168                "kista_2"
169             ]
170           }
171       ]
172     streams_publishes: |
173       {
174         "dmaap_publisher": {
175           "type":"message_router",
176           "dmaap_info":{
177             "topic_url":"http://message-router.onap:3904/events/A1-POLICY-AGENT-WRITE"
178           }
179         }
180       }
181     streams_subscribes: |
182       {
183         "dmaap_subscriber":{
184           "type":"message_router",
185           "dmaap_info":{
186             "topic_url":"http://message-router.onap:3904/events/A1-POLICY-AGENT-READ/users/policy-agent?timeout=15000&limit=100"
187           }
188         }
189       }
190 enrichmentservice:
191   enrichmentservice:
192     imagePullPolicy: IfNotPresent
193     image:
194       registry: 'nexus3.o-ran-sc.org:10002/o-ran-sc'
195       name: 'nonrtric-enrichment-coordinator-service'
196       tag: 1.0.0
197     service:
198       allowHttp: true
199       httpName: http
200       internalPort1: 9082
201       targetPort1: 8083
202       externalPort1: 30095
203       httpsName: https
204       internalPort2: 9083
205       targetPort2: 8434
206       externalPort2: 30096
207     liveness:
208       initialDelaySeconds: 20
209       periodSeconds: 10
210     readiness:
211       initialDelaySeconds: 20
212       periodSeconds: 10
213     persistence:
214       enabled: true
215       volumeReclaimPolicy: Retain
216       accessMode: ReadWriteOnce
217       size: 2Gi
218       mountPath: /dockerdata-nfs
219       mountSubPath: nonrtric/enrichmentservice