DMaaP subscribe url with limit & timeout
[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:10004/o-ran-sc'
35       name: nonrtric-a1-controller
36       tag: 2.0.0
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:10004/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:10004/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:10004/o-ran-sc'
115       name: nonrtric-policy-agent
116       tag: 2.0.0
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":"http://192.168.130.80:32080/a1mediator",
138           "controller": "controller1",
139           "managedElementIds":
140           [
141              "kista_1",
142              "kista_2"
143           ]
144         }
145       ]
146     streams_publishes: |
147       {
148         "dmaap_publisher": {
149           "type":"message_router",
150           "dmaap_info":{
151             "topic_url":"http://message-router.onap:3904/events/A1-POLICY-AGENT-WRITE"
152           }
153         }
154       }
155     streams_subscribes: |
156       {
157         "dmaap_subscriber":{
158           "type":"message_router",
159           "dmaap_info":{
160             "topic_url":"http://message-router.onap:3904/events/A1-POLICY-AGENT-READ/users/policy-agent?timeout=15000&limit=100"
161           }
162         }
163       }
164