Run all components in one namespace
[oom.git] / kubernetes / aai / templates / all-services.yaml
1 #{{ if not .Values.disableAaiHbase }}
2 apiVersion: v1
3 kind: Service
4 metadata:
5   name: hbase
6   namespace: "{{ .Values.nsPrefix }}"
7   labels:
8     app: hbase
9 spec:
10   ports:
11   - name: "hbase-port-1"
12     port: 2181
13   - name: "hbase-port-2"
14     port: 8080
15   - name: "hbase-port-3"
16     port: 8085
17   - name: "hbase-port-4"
18     port: 9090
19   - name: "hbase-port-5"
20     port: 16000
21   - name: "hbase-port-6"
22     port: 16010
23   - name: "hbase-port-7"
24     port: 16201
25   selector:
26     app: hbase
27   clusterIP: None
28 #{{ end }}
29 #{{ if not .Values.disableAaiAaiService }}
30 ---
31 apiVersion: v1
32 kind: Service
33 metadata:
34   name: aai-service
35   namespace: "{{ .Values.nsPrefix }}"
36   labels:
37     app: aai-service
38   annotations:
39     msb.onap.org/service-info: '[
40       {
41           "serviceName": "aai-cloudInfrastructure",
42           "version": "v11",
43           "url": "/aai/v11/cloud-infrastructure",
44           "protocol": "REST",
45           "port": "8443",
46           "enable_ssl": true,
47           "visualRange": "1"
48       },
49       {
50           "serviceName": "aai-cloudInfrastructure-deprecated",
51           "version": "v11",
52           "url": "/aai/v11/cloud-infrastructure",
53           "protocol": "REST",
54           "port": "8443",
55           "enable_ssl": true,
56           "visualRange": "1",
57           "path": "/aai/v11/cloud-infrastructure"
58       },
59       {
60           "serviceName": "aai-business",
61           "version": "v11",
62           "url": "/aai/v11/business",
63           "protocol": "REST",
64           "port": "8443",
65           "enable_ssl": true,
66           "visualRange": "1"
67       },
68       {
69           "serviceName": "aai-business-deprecated",
70           "version": "v11",
71           "url": "/aai/v11/business",
72           "protocol": "REST",
73           "port": "8443",
74           "enable_ssl": true,
75           "visualRange": "1",
76           "path": "/aai/v11/business"
77       },
78       {
79           "serviceName": "aai-search",
80           "version": "v11",
81           "url": "/aai/v11/search",
82           "protocol": "REST",
83           "port": "8443",
84           "enable_ssl": true,
85           "visualRange": "1"
86       },
87       {
88           "serviceName": "aai-search-deprecated",
89           "version": "v11",
90           "url": "/aai/v11/search",
91           "protocol": "REST",
92           "port": "8443",
93           "enable_ssl": true,
94           "visualRange": "1",
95           "path": "/aai/v11/search"
96       },
97       {
98           "serviceName": "aai-actions",
99           "version": "v11",
100           "url": "/aai/v11/actions",
101           "protocol": "REST",
102           "port": "8443",
103           "enable_ssl": true,
104           "visualRange": "1"
105       },
106       {
107           "serviceName": "aai-actions-deprecated",
108           "version": "v11",
109           "url": "/aai/v11/actions",
110           "protocol": "REST",
111           "port": "8443",
112           "enable_ssl": true,
113           "visualRange": "1",
114           "path": "/aai/v11/actions"
115       },
116       {
117           "serviceName": "aai-service-design-and-creation",
118           "version": "v11",
119           "url": "/aai/v11/service-design-and-creation",
120           "protocol": "REST",
121           "port": "8443",
122           "enable_ssl": true,
123           "visualRange": "1"
124       },
125       {
126           "serviceName": "aai-service-design-and-creation-deprecated",
127           "version": "v11",
128           "url": "/aai/v11/service-design-and-creation",
129           "protocol": "REST",
130           "port": "8443",
131           "enable_ssl": true,
132           "visualRange": "1",
133           "path": "/aai/v11/service-design-and-creation"
134       },
135       {
136           "serviceName": "aai-network",
137           "version": "v11",
138           "url": "/aai/v11/network",
139           "protocol": "REST",
140           "port": "8443",
141           "enable_ssl": true,
142           "visualRange": "1"
143       },
144       {
145           "serviceName": "aai-network-deprecated",
146           "version": "v11",
147           "url": "/aai/v11/network",
148           "protocol": "REST",
149           "port": "8443",
150           "enable_ssl": true,
151           "visualRange": "1",
152           "path": "/aai/v11/network"
153       },
154       {
155           "serviceName": "aai-externalSystem",
156           "version": "v11",
157           "url": "/aai/v11/external-system",
158           "protocol": "REST",
159           "port": "8443",
160           "enable_ssl": true,
161           "visualRange": "1"
162       },
163       {
164           "serviceName": "aai-externalSystem-deprecated",
165           "version": "v11",
166           "url": "/aai/v11/external-system",
167           "protocol": "REST",
168           "port": "8443",
169           "enable_ssl": true,
170           "visualRange": "1",
171           "path": "/aai/v11/external-system"
172       }
173       ]'
174 spec:
175   ports:
176   - name: "aai-service-port-8443"
177     port: 8443
178     targetPort: 8443
179     nodePort: {{ .Values.nodePortPrefix }}33
180   - name: "aai-service-port-8080"
181     port: 8080
182     targetPort: 8080
183     nodePort: {{ .Values.nodePortPrefix }}32
184   type: NodePort
185   selector:
186     app: aai-service
187   clusterIP: {{ .Values.aaiServiceClusterIp }}
188 #{{ end }}
189 #{{ if not .Values.disableAaiModelLoaderService }}
190 ---
191 apiVersion: v1
192 kind: Service
193 metadata:
194   name: model-loader-service
195   namespace: "{{ .Values.nsPrefix }}"
196   labels:
197     app: model-loader-service
198 spec:
199   ports:
200   - name: "model-loader-service-port-8443"
201     port: 8443
202     nodePort: {{ .Values.nodePortPrefix }}29
203   - name: "model-loader-service-port-8080"
204     port: 8080
205     nodePort: {{ .Values.nodePortPrefix }}10
206   type: NodePort
207   selector:
208     app: model-loader-service
209 #{{ end }}
210 ---
211 apiVersion: v1
212 kind: Service
213 metadata:
214   name: gremlin
215   namespace: "{{ .Values.nsPrefix }}"
216   labels:
217     app: gremlin
218 spec:
219   ports:
220   - name: "gremlin-port"
221     port: 8182
222   selector:
223     app: gremlin
224   clusterIP: None
225 #{{ if not .Values.disableAaiElasticsearch }}
226 ---
227 apiVersion: v1
228 kind: Service
229 metadata:
230   name: aai-elasticsearch
231   namespace: "{{ .Values.nsPrefix }}"
232   labels:
233     app: aai-elasticsearch
234 spec:
235   ports:
236   - name: "aai-elasticsearch-port"
237     port: 9200
238   selector:
239     app: aai-elasticsearch
240   clusterIP: None
241 #{{ end }}
242 #{{ if not .Values.disableAaiSearchDataService }}
243 ---
244 apiVersion: v1
245 kind: Service
246 metadata:
247   name: search-data-service
248   namespace: "{{ .Values.nsPrefix }}"
249   labels:
250     app: search-data-service
251 spec:
252   ports:
253   - name: "search-data-service-port-9509"
254     port: 9509
255   selector:
256     app: search-data-service
257   clusterIP: None
258 #{{ end }}
259 #{{ if not .Values.disableAaiAaiTraversal }}
260 ---
261 apiVersion: v1
262 kind: Service
263 metadata:
264   name: aai-traversal
265   namespace: "{{ .Values.nsPrefix }}"
266   labels:
267     app: aai-traversal
268 spec:
269   ports:
270   - name: "aai-traversal-port-8446"
271     port: 8446
272   - name: aai-traversal-port-debug
273     port: 5005
274   selector:
275     app: aai-traversal
276   clusterIP: None
277 #{{ end }}
278 #{{ if not .Values.disableAaiAaiResources }}
279 ---
280 apiVersion: v1
281 kind: Service
282 metadata:
283   name: aai-resources
284   namespace: "{{ .Values.nsPrefix }}"
285   labels:
286     app: aai-resources
287 spec:
288   ports:
289   - name: "aai-resources-port-8447"
290     port: 8447
291   - name: aai-resources-port-debug
292     port: 5005
293   selector:
294     app: aai-resources
295   clusterIP: None
296 #{{ end }}
297 #{{ if not .Values.disableAaiSparkyBe }}
298 ---
299 apiVersion: v1
300 kind: Service
301 metadata:
302   name: sparky-be
303   namespace: "{{ .Values.nsPrefix }}"
304   labels:
305     app: sparky-be
306 spec:
307   ports:
308   - name: "sparky-be-port-9517"
309     port: 9517
310   selector:
311     app: sparky-be
312   clusterIP: None
313 #{{ end }}