3 # ============LICENSE_START=======================================================
5 # ================================================================================
6 # Copyright © 2018 AT&T Intellectual Property. All rights reserved.
7 # Modifications Copyright © 2021 Orange
8 # ================================================================================
9 # Licensed under the Apache License, Version 2.0 (the "License");
10 # you may not use this file except in compliance with the License.
11 # You may obtain a copy of the License at
13 # http://www.apache.org/licenses/LICENSE-2.0
15 # Unless required by applicable law or agreed to in writing, software
16 # distributed under the License is distributed on an "AS IS" BASIS,
17 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 # See the License for the specific language governing permissions and
19 # limitations under the License.
20 # ============LICENSE_END=========================================================
26 name: {{ include "common.servicename" . }}
27 namespace: {{ include "common.namespace" . }}
29 app: {{ include "common.name" . }}
30 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
31 release: {{ include "common.release" . }}
32 heritage: {{ .Release.Service }}
34 type: {{ .Values.service.type }}
36 {{if eq .Values.service.type "NodePort" -}}
37 - port: {{ .Values.service.internalPort }}
38 nodePort: {{ .Values.global.nodePortPrefix | default .Values.nodePortPrefix }}{{ .Values.service.nodePort }}
39 name: {{ .Values.service.portName }}
40 - port: {{ .Values.service.internalPort2 }}
41 nodePort: {{ .Values.global.nodePortPrefix | default .Values.nodePortPrefix }}{{ .Values.service.nodePort2 }}
42 name: {{ .Values.service.portName2 }}
43 - port: {{ .Values.service.internalPort3 }}
44 nodePort: {{ .Values.global.nodePortPrefix | default .Values.nodePortPrefix }}{{ .Values.service.nodePort3 }}
45 name: {{ .Values.service.portName3 }}
47 - port: {{ .Values.service.internalPort }}
48 name: {{ .Values.service.portName }}
49 - port: {{ .Values.service.internalPort2 }}
50 name: {{ .Values.service.portName2 }}
51 - port: {{ .Values.service.internalPort3 }}
52 name: {{ .Values.service.portName3 }}
55 app: {{ include "common.name" . }}
56 release: {{ include "common.release" . }}