Moving dev back to LF Gerrit
[it/dep.git] / ric-platform / 50-RIC-Platform / helm / jaegeradapter / templates / deployment.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: apps/v1
16 kind: Deployment
17 metadata:
18   name: {{ include "common.deploymentname.jaegeradapter" . }}
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   replicas: {{ .Values.jaegeradapter.replicaCount }}
27   selector:
28     matchLabels:
29       app: {{ include "common.namespace.platform" . }}-{{ include "common.name.jaegeradapter" . }}
30       release: {{ .Release.Name }}
31   template:
32     metadata:
33       {{- if .Values.jaegeradapter.annotations }}
34       annotations:
35         {{- .Values.jaegeradapter.annotations | nindent 8 -}}
36       {{ end }}
37       labels:
38         app: {{ include "common.namespace.platform" . }}-{{ include "common.name.jaegeradapter" . }}
39         release: {{ .Release.Name }}
40     spec:
41       hostname: {{ include "common.name.jaegeradapter" . }}
42       imagePullSecrets:
43         - name: {{ include "common.repositoryCred" . }}
44       containers:
45         - name: {{ include "common.containername.jaegeradapter" . }}
46           image: {{ include "common.repository" . }}/{{ .Values.jaegeradapter.image.name }}:{{ .Values.jaegeradapter.image.tag }}
47           imagePullPolicy: {{ include "common.pullPolicy" . }}
48           envFrom:
49             - configMapRef:
50                 name: {{ include "common.configmapname.jaegeradapter" . }}
51           ports:
52             - name: {{ include "common.portname.jaegeradapter.zipkincompact" . }} 
53               containerPort: {{ include "common.serviceport.jaegeradapter.zipkincompact" . }}
54               protocol: UDP
55             - name: {{ include "common.portname.jaegeradapter.jaegercompact" . }}  
56               containerPort: {{ include "common.serviceport.jaegeradapter.jaegercompact" . }}
57               protocol: UDP
58             - name: {{ include "common.portname.jaegeradapter.jaegerbinary" . }} 
59               containerPort: {{ include "common.serviceport.jaegeradapter.jaegerbinary" . }}
60               protocol: UDP
61             - name: {{ include "common.portname.jaegeradapter.httpquery" . }} 
62               containerPort: {{ include "common.serviceport.jaegeradapter.httpquery" . }}
63               protocol: TCP
64             - name: {{ include "common.portname.jaegeradapter.httpconfig" . }} 
65               containerPort: {{ include "common.serviceport.jaegeradapter.httpconfig" . }}
66               protocol: TCP
67             - name: {{ include "common.portname.jaegeradapter.zipkinhttp" . }} 
68               containerPort: {{ include "common.serviceport.jaegeradapter.zipkinhttp" . }}
69               protocol: TCP
70             - name: {{ include "common.portname.jaegeradapter.jaegerhttp" . }} 
71               containerPort: {{ include "common.serviceport.jaegeradapter.jaegerhttp" . }}
72               protocol: TCP
73             - name: {{ include "common.portname.jaegeradapter.jaegerhttpt" . }}
74               containerPort: {{ include "common.serviceport.jaegeradapter.jaegerhttpt" . }}
75               protocol: TCP
76           livenessProbe:
77             httpGet:
78               path: /
79               port: {{ include "common.serviceport.jaegeradapter.httpquery" . }}
80           readinessProbe:
81             httpGet:
82               path: /
83               port: {{ include "common.serviceport.jaegeradapter.httpquery" . }}
84               initialDelaySeconds: 5