vaibhav_16dec | e04b2fe | 2018-03-22 09:07:12 +0000 | [diff] [blame] | 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 | |
yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 15 | #{{ if not .Values.disableMsbMsbConsul }} |
HuabingZhao | f2a9f56 | 2017-08-26 11:49:59 +0800 | [diff] [blame] | 16 | apiVersion: v1 |
| 17 | kind: Service |
| 18 | metadata: |
| 19 | name: msb-consul |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 20 | namespace: "{{ .Values.nsPrefix }}" |
HuabingZhao | f2a9f56 | 2017-08-26 11:49:59 +0800 | [diff] [blame] | 21 | labels: |
| 22 | app: msb-consul |
| 23 | spec: |
HuabingZhao | f2a9f56 | 2017-08-26 11:49:59 +0800 | [diff] [blame] | 24 | ports: |
HuabingZhao | 4ea0655 | 2017-08-29 15:30:10 +0800 | [diff] [blame] | 25 | - port: {{ .Values.consulPort }} |
HuabingZhao | 77d44cd | 2017-08-30 09:30:03 +0800 | [diff] [blame] | 26 | nodePort: {{ .Values.consulNodePort }} |
HuabingZhao | f2a9f56 | 2017-08-26 11:49:59 +0800 | [diff] [blame] | 27 | selector: |
| 28 | app: msb-consul |
HuabingZhao | c2b4fcf | 2017-08-29 10:48:25 +0800 | [diff] [blame] | 29 | type: NodePort |
yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 30 | #{{ end }} |
| 31 | #{{ if not .Values.disableMsbMsbDiscovery }} |
HuabingZhao | c2b4fcf | 2017-08-29 10:48:25 +0800 | [diff] [blame] | 32 | --- |
| 33 | apiVersion: v1 |
| 34 | kind: Service |
| 35 | metadata: |
| 36 | name: msb-discovery |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 37 | namespace: "{{ .Values.nsPrefix }}" |
HuabingZhao | c2b4fcf | 2017-08-29 10:48:25 +0800 | [diff] [blame] | 38 | labels: |
| 39 | app: msb-discovery |
| 40 | spec: |
| 41 | clusterIP: "{{ .Values.discoveryClusterIP }}" |
| 42 | ports: |
| 43 | - port: {{ .Values.discoveryPort }} |
| 44 | nodePort: {{ .Values.discoveryNodePort }} |
| 45 | selector: |
| 46 | app: msb-discovery |
HuabingZhao | 3469029 | 2017-08-30 13:42:11 +0800 | [diff] [blame] | 47 | type: NodePort |
yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 48 | #{{ end }} |
| 49 | #{{ if not .Values.disableMsbMsbIag }} |
HuabingZhao | 3469029 | 2017-08-30 13:42:11 +0800 | [diff] [blame] | 50 | --- |
| 51 | apiVersion: v1 |
| 52 | kind: Service |
| 53 | metadata: |
| 54 | name: msb-iag |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 55 | namespace: "{{ .Values.nsPrefix }}" |
HuabingZhao | 1ed45d9 | 2017-09-12 04:17:56 -0400 | [diff] [blame] | 56 | labels: |
| 57 | app: msb-iag |
| 58 | spec: |
| 59 | ports: |
HuabingZhao | d142adb | 2018-02-28 16:13:59 +0800 | [diff] [blame] | 60 | - name: http |
| 61 | port: {{ .Values.iagPort }} |
HuabingZhao | 1ed45d9 | 2017-09-12 04:17:56 -0400 | [diff] [blame] | 62 | nodePort: {{ .Values.iagNodePort }} |
HuabingZhao | d142adb | 2018-02-28 16:13:59 +0800 | [diff] [blame] | 63 | - name: https |
| 64 | port: {{ .Values.iagPort_https }} |
| 65 | nodePort: {{ .Values.iagNodePort_https }} |
HuabingZhao | 1ed45d9 | 2017-09-12 04:17:56 -0400 | [diff] [blame] | 66 | selector: |
| 67 | app: msb-iag |
| 68 | type: NodePort |
yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 69 | #{{ end }} |
| 70 | #{{ if not .Values.disableMsbMsbEag }} |
HuabingZhao | 1ed45d9 | 2017-09-12 04:17:56 -0400 | [diff] [blame] | 71 | --- |
| 72 | apiVersion: v1 |
| 73 | kind: Service |
| 74 | metadata: |
| 75 | name: msb-eag |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 76 | namespace: "{{ .Values.nsPrefix }}" |
HuabingZhao | 1ed45d9 | 2017-09-12 04:17:56 -0400 | [diff] [blame] | 77 | labels: |
| 78 | app: msb-eag |
| 79 | spec: |
| 80 | ports: |
HuabingZhao | d142adb | 2018-02-28 16:13:59 +0800 | [diff] [blame] | 81 | - name: http |
| 82 | port: {{ .Values.eagPort }} |
HuabingZhao | 1ed45d9 | 2017-09-12 04:17:56 -0400 | [diff] [blame] | 83 | nodePort: {{ .Values.eagNodePort }} |
HuabingZhao | d142adb | 2018-02-28 16:13:59 +0800 | [diff] [blame] | 84 | - name: https |
| 85 | port: {{ .Values.eagPort_https }} |
| 86 | nodePort: {{ .Values.eagNodePort_https }} |
HuabingZhao | 1ed45d9 | 2017-09-12 04:17:56 -0400 | [diff] [blame] | 87 | selector: |
| 88 | app: msb-eag |
| 89 | type: NodePort |
HuabingZhao | d142adb | 2018-02-28 16:13:59 +0800 | [diff] [blame] | 90 | #{{ end }} |