License addition in all yamls
[oom.git] / kubernetes / mso / templates / all-services.yaml
1 # Copyright © 2017 Amdocs, Bell Canada
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #       http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 #{{ if not .Values.disableMsoMariadb }}
16 apiVersion: v1
17 kind: Service
18 metadata:
19   name: mso-mariadb
20   namespace: "{{ .Values.nsPrefix }}"
21   labels:
22     app: mso-mariadb
23 spec:
24   ports:
25   - port: 3306
26     name: mso-mariadb-3306
27   selector:
28     app: mso-mariadb
29   clusterIP: None
30 #{{ end }}
31 #{{ if not .Values.disableMsoMso }}
32 ---
33 apiVersion: v1
34 kind: Service
35 metadata:
36   name: mso
37   namespace: "{{ .Values.nsPrefix }}"
38   labels:
39     app: mso
40   annotations:
41     msb.onap.org/service-info: '[
42       {
43           "serviceName": "so",
44           "version": "v1",
45           "url": "/ecomp/mso/infra",
46           "protocol": "REST"
47           "port": "8080",
48           "visualRange":"1"
49       },
50       {
51           "serviceName": "so-deprecated",
52           "version": "v1",
53           "url": "/ecomp/mso/infra",
54           "protocol": "REST"
55           "port": "8080",
56           "visualRange":"1",
57           "path":"/ecomp/mso/infra"
58       }
59       ]'
60 spec:
61   selector:
62     app: mso
63   ports:
64     - name: mso1
65       port: 8080
66       nodePort: {{ .Values.nodePortPrefix }}23
67     - name: mso2
68       port: 3904
69       nodePort: {{ .Values.nodePortPrefix }}25
70     - name: mso3
71       port: 3905
72       nodePort: {{ .Values.nodePortPrefix }}24
73     - name: mso4
74       port: 9990
75       nodePort: {{ .Values.nodePortPrefix }}22
76     - name: mso5
77       port: 8787
78       nodePort: {{ .Values.nodePortPrefix }}50
79   type: NodePort
80 #{{ end }}