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