blob: 572a78dd2d707c03b6bc1aaa612f80400a86c514 [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.disableMsbMsbConsul }}
HuabingZhaof2a9f562017-08-26 11:49:59 +080016apiVersion: v1
17kind: Service
18metadata:
19 name: msb-consul
BorislavG8bfc6cf2018-02-27 15:04:26 +000020 namespace: "{{ .Values.nsPrefix }}"
HuabingZhaof2a9f562017-08-26 11:49:59 +080021 labels:
22 app: msb-consul
23spec:
HuabingZhaof2a9f562017-08-26 11:49:59 +080024 ports:
HuabingZhao4ea06552017-08-29 15:30:10 +080025 - port: {{ .Values.consulPort }}
HuabingZhao77d44cd2017-08-30 09:30:03 +080026 nodePort: {{ .Values.consulNodePort }}
HuabingZhaof2a9f562017-08-26 11:49:59 +080027 selector:
28 app: msb-consul
HuabingZhaoc2b4fcf2017-08-29 10:48:25 +080029 type: NodePort
yurynfcef9942017-10-26 17:10:50 +030030#{{ end }}
31#{{ if not .Values.disableMsbMsbDiscovery }}
HuabingZhaoc2b4fcf2017-08-29 10:48:25 +080032---
33apiVersion: v1
34kind: Service
35metadata:
36 name: msb-discovery
BorislavG8bfc6cf2018-02-27 15:04:26 +000037 namespace: "{{ .Values.nsPrefix }}"
HuabingZhaoc2b4fcf2017-08-29 10:48:25 +080038 labels:
39 app: msb-discovery
40spec:
41 clusterIP: "{{ .Values.discoveryClusterIP }}"
42 ports:
43 - port: {{ .Values.discoveryPort }}
44 nodePort: {{ .Values.discoveryNodePort }}
45 selector:
46 app: msb-discovery
HuabingZhao34690292017-08-30 13:42:11 +080047 type: NodePort
yurynfcef9942017-10-26 17:10:50 +030048#{{ end }}
49#{{ if not .Values.disableMsbMsbIag }}
HuabingZhao34690292017-08-30 13:42:11 +080050---
51apiVersion: v1
52kind: Service
53metadata:
54 name: msb-iag
BorislavG8bfc6cf2018-02-27 15:04:26 +000055 namespace: "{{ .Values.nsPrefix }}"
HuabingZhao1ed45d92017-09-12 04:17:56 -040056 labels:
57 app: msb-iag
58spec:
59 ports:
HuabingZhaod142adb2018-02-28 16:13:59 +080060 - name: http
61 port: {{ .Values.iagPort }}
HuabingZhao1ed45d92017-09-12 04:17:56 -040062 nodePort: {{ .Values.iagNodePort }}
HuabingZhaod142adb2018-02-28 16:13:59 +080063 - name: https
64 port: {{ .Values.iagPort_https }}
65 nodePort: {{ .Values.iagNodePort_https }}
HuabingZhao1ed45d92017-09-12 04:17:56 -040066 selector:
67 app: msb-iag
68 type: NodePort
yurynfcef9942017-10-26 17:10:50 +030069#{{ end }}
70#{{ if not .Values.disableMsbMsbEag }}
HuabingZhao1ed45d92017-09-12 04:17:56 -040071---
72apiVersion: v1
73kind: Service
74metadata:
75 name: msb-eag
BorislavG8bfc6cf2018-02-27 15:04:26 +000076 namespace: "{{ .Values.nsPrefix }}"
HuabingZhao1ed45d92017-09-12 04:17:56 -040077 labels:
78 app: msb-eag
79spec:
80 ports:
HuabingZhaod142adb2018-02-28 16:13:59 +080081 - name: http
82 port: {{ .Values.eagPort }}
HuabingZhao1ed45d92017-09-12 04:17:56 -040083 nodePort: {{ .Values.eagNodePort }}
HuabingZhaod142adb2018-02-28 16:13:59 +080084 - name: https
85 port: {{ .Values.eagPort_https }}
86 nodePort: {{ .Values.eagNodePort_https }}
HuabingZhao1ed45d92017-09-12 04:17:56 -040087 selector:
88 app: msb-eag
89 type: NodePort
HuabingZhaod142adb2018-02-28 16:13:59 +080090#{{ end }}