df7e3567d077c026d4098ee70dc9ba90e273174b
[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 spec:
156   ports:
157   - name: "aai-service-port-8443"
158     port: 8443
159     targetPort: 8443
160     nodePort: {{ .Values.nodePortPrefix }}33
161   - name: "aai-service-port-8080"
162     port: 8080
163     targetPort: 8080
164     nodePort: {{ .Values.nodePortPrefix }}32
165   type: NodePort
166   selector:
167     app: aai-service
168 #{{ end }}
169 #{{ if not .Values.disableAaiModelLoaderService }}
170 ---
171 apiVersion: v1
172 kind: Service
173 metadata:
174   name: model-loader-service
175   namespace: "{{ .Values.nsPrefix }}-aai"
176   labels:
177     app: model-loader-service
178 spec:
179   ports:
180   - name: "model-loader-service-port-8443"
181     port: 8443
182     nodePort: {{ .Values.nodePortPrefix }}29
183   - name: "model-loader-service-port-8080"
184     port: 8080
185     nodePort: {{ .Values.nodePortPrefix }}10
186   type: NodePort
187   selector:
188     app: model-loader-service
189 #{{ end }}
190 ---
191 apiVersion: v1
192 kind: Service
193 metadata:
194   name: gremlin
195   namespace: "{{ .Values.nsPrefix }}-aai"
196   labels:
197     app: gremlin
198 spec:
199   ports:
200   - name: "gremlin-port"
201     port: 8182
202   selector:
203     app: gremlin
204   clusterIP: None
205 #{{ if not .Values.disableAaiElasticsearch }}
206 ---
207 apiVersion: v1
208 kind: Service
209 metadata:
210   name: elasticsearch
211   namespace: "{{ .Values.nsPrefix }}-aai"
212   labels:
213     app: elasticsearch
214 spec:
215   ports:
216   - name: "elasticsearch-port"
217     port: 9200
218   selector:
219     app: elasticsearch
220   clusterIP: None
221 #{{ end }}
222 #{{ if not .Values.disableAaiSearchDataService }}
223 ---
224 apiVersion: v1
225 kind: Service
226 metadata:
227   name: search-data-service
228   namespace: "{{ .Values.nsPrefix }}-aai"
229   labels:
230     app: search-data-service
231 spec:
232   ports:
233   - name: "search-data-service-port-9509"
234     port: 9509
235   selector:
236     app: search-data-service
237   clusterIP: None
238 #{{ end }}
239 #{{ if not .Values.disableAaiAaiTraversal }}
240 ---
241 apiVersion: v1
242 kind: Service
243 metadata:
244   name: aai-traversal
245   namespace: "{{ .Values.nsPrefix }}-aai"
246   labels:
247     app: aai-traversal
248 spec:
249   ports:
250   - name: "aai-traversal-port-8446"
251     port: 8446
252   - name: aai-traversal-port-debug
253     port: 5005
254   selector:
255     app: aai-traversal
256   clusterIP: None
257 #{{ end }}
258 #{{ if not .Values.disableAaiAaiResources }}
259 ---
260 apiVersion: v1
261 kind: Service
262 metadata:
263   name: aai-resources
264   namespace: "{{ .Values.nsPrefix }}-aai"
265   labels:
266     app: aai-resources
267 spec:
268   ports:
269   - name: "aai-resources-port-8447"
270     port: 8447
271   - name: aai-resources-port-debug
272     port: 5005
273   selector:
274     app: aai-resources
275   clusterIP: None
276 #{{ end }}
277 #{{ if not .Values.disableAaiSparkyBe }}
278 ---
279 apiVersion: v1
280 kind: Service
281 metadata:
282   name: sparky-be
283   namespace: "{{ .Values.nsPrefix }}-aai"
284   labels:
285     app: sparky-be
286 spec:
287   ports:
288   - name: "sparky-be-port-9517"
289     port: 9517
290   selector:
291     app: sparky-be
292   clusterIP: None
293 #{{ end }}