1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
|
# Resources to create ONAP4K8s v2 Microservices
---
# Orchestrator Config Map
kind: ConfigMap
apiVersion: v1
metadata:
name: orchestrator
labels:
app: orchestrator
data:
config.json: |
{
"database-type": "mongo",
"database-ip": "mongo",
"etcd-ip": "etcd",
"service-port": "9015"
}
---
# Orchestrator Service
apiVersion: v1
kind: Service
metadata:
name: orchestrator
labels:
app: orchestrator
spec:
selector:
app: orchestrator
type: NodePort
ports:
- name: http
port: 9015
nodePort: 31298
protocol: TCP
targetPort: 9015
---
# Orchestrator Deployment
apiVersion: apps/v1
kind: Deployment
metadata:
name: orchestrator
spec:
replicas: 1
selector:
matchLabels:
app: orchestrator
template:
metadata:
labels:
app: orchestrator
spec:
containers:
- name: orchestrator
image: rtsood/emco:0.0.1
imagePullPolicy: IfNotPresent
command: ["/opt/emco/entrypoint", "orchestrator"]
workingDir: /opt/emco
ports:
- containerPort: 9015
volumeMounts:
- name: config
mountPath: /opt/emco/config.json
subPath: config.json
volumes:
- name: config
configMap:
name: orchestrator
items:
- key: config.json
path: config.json
---
# NCM Config Map
kind: ConfigMap
apiVersion: v1
metadata:
name: ncm
labels:
app: ncm
data:
config.json: |
{
"database-type": "mongo",
"database-ip": "mongo",
"etcd-ip": "etcd",
"service-port": "9031"
}
---
# NCM Service
apiVersion: v1
kind: Service
metadata:
name: ncm
labels:
app: ncm
spec:
selector:
app: ncm
type: NodePort
ports:
- name: http
port: 9031
nodePort: 32737
protocol: TCP
targetPort: 9031
---
# NCM Deployment
apiVersion: apps/v1
kind: Deployment
metadata:
name: ncm
spec:
replicas: 1
selector:
matchLabels:
app: ncm
template:
metadata:
labels:
app: ncm
spec:
containers:
- name: ncm
image: rtsood/emco:0.0.1
imagePullPolicy: IfNotPresent
command: ["/opt/emco/entrypoint", "ncm"]
workingDir: /opt/emco
ports:
- containerPort: 9031
volumeMounts:
- name: config
mountPath: /opt/emco/config.json
subPath: config.json
volumes:
- name: config
configMap:
name: ncm
items:
- key: config.json
path: config.json
---
# RSYNC ConfigMap
kind: ConfigMap
apiVersion: v1
metadata:
name: rsync
labels:
app: rsync
data:
config.json: |
{
"database-type": "mongo",
"database-ip": "mongo",
"etcd-ip": "etcd"
}
---
# RSYNC Service
apiVersion: v1
kind: Service
metadata:
name: rsync
labels:
app: rsync
spec:
selector:
app: rsync
type: NodePort
ports:
- name: internal
port: 9041
protocol: TCP
targetPort: 9041
---
# RSYNC Deployment
apiVersion: apps/v1
kind: Deployment
metadata:
name: rsync
spec:
replicas: 1
selector:
matchLabels:
app: rsync
template:
metadata:
labels:
app: rsync
spec:
containers:
- name: rsync
image: rtsood/emco:0.0.1
imagePullPolicy: IfNotPresent
command: ["/opt/emco/entrypoint", "rsync"]
workingDir: /opt/emco
ports:
- containerPort: 9041
volumeMounts:
- name: config
mountPath: /opt/emco/config.json
subPath: config.json
volumes:
- name: config
configMap:
name: rsync
items:
- key: config.json
path: config.json
---
# Ovnaction Config Map
kind: ConfigMap
apiVersion: v1
metadata:
name: ovnaction
labels:
app: ovnaction
data:
config.json: |
{
"database-type": "mongo",
"database-ip": "mongo",
"etcd-ip": "etcd",
"service-port": "9051"
}
---
# Ovnaction Service
apiVersion: v1
kind: Service
metadata:
name: ovnaction
labels:
app: ovnaction
spec:
selector:
app: ovnaction
type: NodePort
ports:
- name: internal
port: 9053
protocol: TCP
targetPort: 9053
- name: http
port: 9051
nodePort: 31181
protocol: TCP
targetPort: 9051
---
# Ovnaction Deployment
apiVersion: apps/v1
kind: Deployment
metadata:
name: ovnaction
spec:
replicas: 1
selector:
matchLabels:
app: ovnaction
template:
metadata:
labels:
app: ovnaction
spec:
containers:
- name: ovnaction
image: rtsood/emco:0.0.1
imagePullPolicy: IfNotPresent
command: ["/opt/emco/entrypoint", "ovnaction"]
workingDir: /opt/emco
ports:
- containerPort: 9053
- containerPort: 9051
volumeMounts:
- name: config
mountPath: /opt/emco/config.json
subPath: config.json
volumes:
- name: config
configMap:
name: ovnaction
items:
- key: config.json
path: config.json
---
# Clm Config Map
kind: ConfigMap
apiVersion: v1
metadata:
name: clm
labels:
app: clm
data:
config.json: |
{
"database-type": "mongo",
"database-ip": "mongo",
"etcd-ip": "etcd",
"service-port": "9061"
}
---
# Clm Service
apiVersion: v1
kind: Service
metadata:
name: clm
labels:
app: clm
spec:
selector:
app: clm
type: NodePort
ports:
- name: http
port: 9061
nodePort: 31856
protocol: TCP
targetPort: 9061
---
# Clm Deployment
apiVersion: apps/v1
kind: Deployment
metadata:
name: clm
spec:
replicas: 1
selector:
matchLabels:
app: clm
template:
metadata:
labels:
app: clm
spec:
containers:
- name: clm
image: rtsood/emco:0.0.1
imagePullPolicy: IfNotPresent
command: ["/opt/emco/entrypoint", "clm"]
workingDir: /opt/emco
ports:
- containerPort: 9061
volumeMounts:
- name: config
mountPath: /opt/emco/config.json
subPath: config.json
volumes:
- name: config
configMap:
name: clm
items:
- key: config.json
path: config.json
|