blob: f7c217d880136964da1c258ac5b6d501f6846696 [file] [log] [blame]
jasmineWen09bc80d2018-03-21 18:21:17 +00001# Copyright © 2017 Amdocs, Bell Canada
Mukul2b4e7532018-08-03 10:41:29 +00002# Modifications Copyright © 2018 AT&T
jasmineWen09bc80d2018-03-21 18:21:17 +00003#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16apiVersion: v1
17kind: Service
18metadata:
BorislavG1ffbd992018-04-24 07:56:27 +000019 name: {{ include "common.servicename" . }}
jasmineWen09bc80d2018-03-21 18:21:17 +000020 namespace: {{ include "common.namespace" . }}
21 labels:
22 app: {{ include "common.name" . }}
23 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
Krzysztof Opasiak137d7cc2020-01-24 23:49:11 +010024 release: {{ include "common.release" . }}
jasmineWen09bc80d2018-03-21 18:21:17 +000025 heritage: {{ .Release.Service }}
26spec:
27 type: {{ .Values.service.type }}
28 ports:
Priyanka Jain1fda9682018-05-09 08:42:50 +000029 {{if eq .Values.service.type "NodePort" -}}
30 - port: {{ .Values.service.internalPort }}
31 nodePort: {{ .Values.global.nodePortPrefix | default .Values.nodePortPrefix }}{{ .Values.service.nodePort }}
32 name: {{ .Values.service.portName }}
33 {{- else -}}
34 - port: {{ .Values.service.internalPort }}
35 name: {{ .Values.service.portName }}
36 {{- end}}
jasmineWen09bc80d2018-03-21 18:21:17 +000037 selector:
Priyanka Jain1fda9682018-05-09 08:42:50 +000038 app: {{ include "common.name" . }}
Krzysztof Opasiak137d7cc2020-01-24 23:49:11 +010039 release: {{ include "common.release" . }}
Priyanka Jain1fda9682018-05-09 08:42:50 +000040 clusterIP: None
41---
Kiran Kamineni444f7492018-07-10 10:32:00 -070042apiVersion: v1
Priyanka Jain1fda9682018-05-09 08:42:50 +000043kind: Service
44metadata:
45 name: {{ include "common.servicename" . }}-ui
46 namespace: {{ include "common.namespace" . }}
47 labels:
48 app: {{ include "common.name" . }}
49 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
Krzysztof Opasiak137d7cc2020-01-24 23:49:11 +010050 release: {{ include "common.release" . }}
Priyanka Jain1fda9682018-05-09 08:42:50 +000051 heritage: {{ .Release.Service }}
52spec:
53 type: {{ .Values.service.type2 }}
54 ports:
55 {{if eq .Values.service.type2 "NodePort" -}}
56 - port: {{ .Values.service.internalPort2 }}
57 nodePort: {{ .Values.global.nodePortPrefix | default .Values.nodePortPrefix }}{{ .Values.service.nodePort2 }}
58 name: {{ .Values.service.portName2 }}
59 {{- else -}}
60 - port: {{ .Values.service.internalPort2 }}
61 name: {{ .Values.service.portName2 }}
62 {{- end}}
63 selector:
64 app: {{ include "common.name" . }}
Krzysztof Opasiak137d7cc2020-01-24 23:49:11 +010065 release: {{ include "common.release" . }}