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