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