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" . }}
28 labels: {{- include "common.labels" . | nindent 4 }}
30 type: {{ .Values.service.type }}
32 {{if eq .Values.service.type "NodePort" -}}
33 - port: {{ .Values.service.appPort }}
34 nodePort: {{ .Values.global.nodePortPrefix | default .Values.nodePortPrefix }}{{ .Values.service.nodePort }}
35 name: {{ .Values.service.appPortName }}
36 targetPort: {{ .Values.service.appPortName }}
37 - port: {{ .Values.service.debugPort }}
38 nodePort: {{ .Values.global.nodePortPrefix | default .Values.nodePortPrefix }}{{ .Values.service.nodePort2 }}
39 name: {{ .Values.service.debugPortName }}
40 targetPort: {{ .Values.service.debugPortName }}
41 - port: {{ .Values.service.actuatorPort }}
42 nodePort: {{ .Values.global.nodePortPrefix | default .Values.nodePortPrefix }}{{ .Values.service.nodePort3 }}
43 name: {{ .Values.service.actuatorPortName }}
44 targetPort: {{ .Values.service.actuatorPortName }}
46 - port: {{ .Values.service.appPort }}
47 name: {{ .Values.service.appPortName }}
48 targetPort: {{ .Values.service.appPortName }}
49 - port: {{ .Values.service.debugPort }}
50 name: {{ .Values.service.debugPortName }}
51 targetPort: {{ .Values.service.debugPortName }}
52 - port: {{ .Values.service.actuatorPort }}
53 name: {{ .Values.service.actuatorPortName }}
54 targetPort: {{ .Values.service.appPort }}
56 selector: {{- include "common.matchLabels" . | nindent 4 }}