Add NONRTRIC rAppmanager HELM charts
[it/dep.git] / nonrtric / helm / rappmanager / templates / service.yaml
1 #  ============LICENSE_START===============================================
2 #  Copyright (C) 2023 OpenInfra Foundation Europe. All rights reserved.
3 #  ========================================================================
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 #  ============LICENSE_END=================================================
16 #
17
18 kind: Service
19 apiVersion: v1
20 metadata:
21   name: {{ include "common.name.rappmanager" . }}
22   namespace: {{ include "common.namespace.nonrtric" . }}
23   labels:
24     app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.rappmanager" . }}
25     chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
26     release: {{ .Release.Name }}
27     heritage: {{ .Release.Service }}
28 spec:
29   ports:
30     - name: {{ index .Values.rappmanager.service.httpName }}
31       port: {{ .Values.rappmanager.service.internalPort1 }}
32       targetPort: {{ .Values.rappmanager.service.targetPort1 }}
33       protocol: TCP
34   selector:
35     app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.rappmanager" . }}
36     release: {{ .Release.Name }}
37   type: ClusterIP