blob: 70e67e482e4e7c81a177e8a003ec355419518338 [file] [log] [blame]
vaibhav_16dece04b2fe2018-03-22 09:07:12 +00001# 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
yurynfcef9942017-10-26 17:10:50 +030015#{{ if not .Values.disableMsoMariadb }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040016apiVersion: v1
17kind: Service
18metadata:
BorislavG8bfc6cf2018-02-27 15:04:26 +000019 name: mso-mariadb
20 namespace: "{{ .Values.nsPrefix }}"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040021 labels:
BorislavG8bfc6cf2018-02-27 15:04:26 +000022 app: mso-mariadb
Mandeep Khindad6ea9872017-06-24 11:49:37 -040023spec:
24 ports:
BorislavG8bfc6cf2018-02-27 15:04:26 +000025 - port: 3306
26 name: mso-mariadb-3306
Mandeep Khindad6ea9872017-06-24 11:49:37 -040027 selector:
BorislavG8bfc6cf2018-02-27 15:04:26 +000028 app: mso-mariadb
29 clusterIP: None
yurynfcef9942017-10-26 17:10:50 +030030#{{ end }}
31#{{ if not .Values.disableMsoMso }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040032---
33apiVersion: v1
34kind: Service
35metadata:
36 name: mso
BorislavG8bfc6cf2018-02-27 15:04:26 +000037 namespace: "{{ .Values.nsPrefix }}"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040038 labels:
39 app: mso
HuabingZhao5b8b12a2017-09-01 13:03:33 +080040 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 ]'
Mandeep Khindad6ea9872017-06-24 11:49:37 -040060spec:
61 selector:
62 app: mso
63 ports:
64 - name: mso1
65 port: 8080
kerenj78eff212017-08-29 09:56:36 +000066 nodePort: {{ .Values.nodePortPrefix }}23
Mandeep Khindad6ea9872017-06-24 11:49:37 -040067 - name: mso2
68 port: 3904
kerenj78eff212017-08-29 09:56:36 +000069 nodePort: {{ .Values.nodePortPrefix }}25
Mandeep Khindad6ea9872017-06-24 11:49:37 -040070 - name: mso3
71 port: 3905
kerenj78eff212017-08-29 09:56:36 +000072 nodePort: {{ .Values.nodePortPrefix }}24
Mandeep Khindad6ea9872017-06-24 11:49:37 -040073 - name: mso4
74 port: 9990
kerenj78eff212017-08-29 09:56:36 +000075 nodePort: {{ .Values.nodePortPrefix }}22
Mandeep Khindad6ea9872017-06-24 11:49:37 -040076 - name: mso5
77 port: 8787
kerenj78eff212017-08-29 09:56:36 +000078 nodePort: {{ .Values.nodePortPrefix }}50
Mandeep Khindad6ea9872017-06-24 11:49:37 -040079 type: NodePort
BorislavG8bfc6cf2018-02-27 15:04:26 +000080#{{ end }}