c2e137c90f2eb939482b27f26a0c944aeabb7067
[it/dep.git] / ric-aux / 80-Auxiliary-Functions / helm / ves / templates / ves-service.yaml
1 ################################################################################\r
2 #   Copyright (c) 2019 AT&T Intellectual Property.                             #\r
3 #   Copyright (c) 2019 Nokia.                                                  #\r
4 #                                                                              #\r
5 #   Licensed under the Apache License, Version 2.0 (the "License");            #\r
6 #   you may not use this file except in compliance with the License.           #\r
7 #   You may obtain a copy of the License at                                    #\r
8 #                                                                              #\r
9 #       http://www.apache.org/licenses/LICENSE-2.0                             #\r
10 #                                                                              #\r
11 #   Unless required by applicable law or agreed to in writing, software        #\r
12 #   distributed under the License is distributed on an "AS IS" BASIS,          #\r
13 #   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   #\r
14 #   See the License for the specific language governing permissions and        #\r
15 #   limitations under the License.                                             #\r
16 ################################################################################\r
17 \r
18 \r
19 kind: Service\r
20 apiVersion: v1\r
21 metadata:\r
22   name: {{ include "common.servicename.ves.http" . }}\r
23   labels:\r
24     app: {{ include "common.namespace.aux" . }}-{{ include "common.name.ves" . }}\r
25     chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}\r
26     release: {{ .Release.Name }}\r
27     heritage: {{ .Release.Service }}\r
28 spec:\r
29   ports:\r
30   - name: http\r
31     protocol: TCP\r
32     port: {{ include "common.serviceport.ves.http.container" . }}\r
33     targetPort: {{ include "common.serviceport.ves.http.container" . }}\r
34     nodePort: {{ include "common.serviceport.ves.http" . }}\r
35   - name: https\r
36     protocol: TCP\r
37     port: {{ include "common.serviceport.ves.https.container" . }}\r
38     targetPort: {{ include "common.serviceport.ves.https.container" . }}\r
39     nodePort: {{ include "common.serviceport.ves.https" . }}\r
40   selector:\r
41     app: {{ include "common.namespace.aux" . }}-{{ include "common.name.ves" . }}\r
42     release: {{ .Release.Name }}\r
43   type: NodePort