0cf62d0fec55237b16210c45ea37054d5703526c
[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 }}-aai"
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 }}-aai"
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 #{{ end }}
188 #{{ if not .Values.disableAaiModelLoaderService }}
189 ---
190 apiVersion: v1
191 kind: Service
192 metadata:
193   name: model-loader-service
194   namespace: "{{ .Values.nsPrefix }}-aai"
195   labels:
196     app: model-loader-service
197 spec:
198   ports:
199   - name: "model-loader-service-port-8443"
200     port: 8443
201     nodePort: {{ .Values.nodePortPrefix }}29
202   - name: "model-loader-service-port-8080"
203     port: 8080
204     nodePort: {{ .Values.nodePortPrefix }}10
205   type: NodePort
206   selector:
207     app: model-loader-service
208 #{{ end }}
209 ---
210 apiVersion: v1
211 kind: Service
212 metadata:
213   name: gremlin
214   namespace: "{{ .Values.nsPrefix }}-aai"
215   labels:
216     app: gremlin
217 spec:
218   ports:
219   - name: "gremlin-port"
220     port: 8182
221   selector:
222     app: gremlin
223   clusterIP: None
224 #{{ if not .Values.disableAaiElasticsearch }}
225 ---
226 apiVersion: v1
227 kind: Service
228 metadata:
229   name: elasticsearch
230   namespace: "{{ .Values.nsPrefix }}-aai"
231   labels:
232     app: elasticsearch
233 spec:
234   ports:
235   - name: "elasticsearch-port"
236     port: 9200
237   selector:
238     app: elasticsearch
239   clusterIP: None
240 #{{ end }}
241 #{{ if not .Values.disableAaiSearchDataService }}
242 ---
243 apiVersion: v1
244 kind: Service
245 metadata:
246   name: search-data-service
247   namespace: "{{ .Values.nsPrefix }}-aai"
248   labels:
249     app: search-data-service
250 spec:
251   ports:
252   - name: "search-data-service-port-9509"
253     port: 9509
254   selector:
255     app: search-data-service
256   clusterIP: None
257 #{{ end }}
258 #{{ if not .Values.disableAaiAaiTraversal }}
259 ---
260 apiVersion: v1
261 kind: Service
262 metadata:
263   name: aai-traversal
264   namespace: "{{ .Values.nsPrefix }}-aai"
265   labels:
266     app: aai-traversal
267 spec:
268   ports:
269   - name: "aai-traversal-port-8446"
270     port: 8446
271   - name: aai-traversal-port-debug
272     port: 5005
273   selector:
274     app: aai-traversal
275   clusterIP: None
276 #{{ end }}
277 #{{ if not .Values.disableAaiAaiResources }}
278 ---
279 apiVersion: v1
280 kind: Service
281 metadata:
282   name: aai-resources
283   namespace: "{{ .Values.nsPrefix }}-aai"
284   labels:
285     app: aai-resources
286 spec:
287   ports:
288   - name: "aai-resources-port-8447"
289     port: 8447
290   - name: aai-resources-port-debug
291     port: 5005
292   selector:
293     app: aai-resources
294   clusterIP: None
295 #{{ end }}
296 #{{ if not .Values.disableAaiSparkyBe }}
297 ---
298 apiVersion: v1
299 kind: Service
300 metadata:
301   name: sparky-be
302   namespace: "{{ .Values.nsPrefix }}-aai"
303   labels:
304     app: sparky-be
305 spec:
306   ports:
307   - name: "sparky-be-port-9517"
308     port: 9517
309   selector:
310     app: sparky-be
311   clusterIP: None
312 #{{ end }}