License addition in all yamls
[oom.git] / kubernetes / msb / 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.disableMsbMsbConsul }}
16 apiVersion: v1
17 kind: Service
18 metadata:
19   name: msb-consul
20   namespace: "{{ .Values.nsPrefix }}"
21   labels:
22     app: msb-consul
23 spec:
24   ports:
25     - port: {{ .Values.consulPort }}
26       nodePort: {{ .Values.consulNodePort }}
27   selector:
28     app: msb-consul
29   type: NodePort
30 #{{ end }}
31 #{{ if not .Values.disableMsbMsbDiscovery }}
32 ---
33 apiVersion: v1
34 kind: Service
35 metadata:
36   name: msb-discovery
37   namespace: "{{ .Values.nsPrefix }}"
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
47   type: NodePort
48 #{{ end }}
49 #{{ if not .Values.disableMsbMsbIag }}
50 ---
51 apiVersion: v1
52 kind: Service
53 metadata:
54   name: msb-iag
55   namespace: "{{ .Values.nsPrefix }}"
56   labels:
57     app: msb-iag
58 spec:
59   ports:
60     - name: http
61       port: {{ .Values.iagPort }}
62       nodePort: {{ .Values.iagNodePort }}
63     - name: https
64       port: {{ .Values.iagPort_https }}
65       nodePort: {{ .Values.iagNodePort_https }}
66   selector:
67     app: msb-iag
68   type: NodePort
69 #{{ end }}
70 #{{ if not .Values.disableMsbMsbEag }}
71 ---
72 apiVersion: v1
73 kind: Service
74 metadata:
75   name: msb-eag
76   namespace: "{{ .Values.nsPrefix }}"
77   labels:
78     app: msb-eag
79 spec:
80   ports:
81     - name: http
82       port: {{ .Values.eagPort }}
83       nodePort: {{ .Values.eagNodePort }}
84     - name: https
85       port: {{ .Values.eagPort_https }}
86       nodePort: {{ .Values.eagNodePort_https }}
87   selector:
88     app: msb-eag
89   type: NodePort
90 #{{ end }}