First version of helm charts
[ric-plt/jaegeradapter.git] / chart / templates / deployment.yaml
1 #   Copyright (c) 2019 AT&T Intellectual Property.
2 #   Copyright (c) 2019 Nokia.
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
16 apiVersion: apps/v1
17 kind: Deployment
18 metadata:
19   name: {{ include "jaeger-all-in-one.fullname" . }}
20   labels:
21 {{ include "jaeger-all-in-one.labels" . | indent 4 }}
22 spec:
23   replicas: {{ .Values.replicaCount }}
24   selector:
25     matchLabels:
26       app.kubernetes.io/name: {{ include "jaeger-all-in-one.name" . }}
27       app.kubernetes.io/instance: {{ .Release.Name }}
28   template:
29     metadata:
30       labels:
31         app.kubernetes.io/name: {{ include "jaeger-all-in-one.name" . }}
32         app.kubernetes.io/instance: {{ .Release.Name }}
33     spec:
34     {{- with .Values.imagePullSecrets }}
35       imagePullSecrets:
36         {{- toYaml . | nindent 8 }}
37     {{- end }}
38       containers:
39         - name: {{ .Chart.Name }}
40           image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
41           imagePullPolicy: {{ .Values.image.pullPolicy }}
42           ports:
43             - containerPort: 5775
44               protocol: UDP
45             - containerPort: 6831
46               protocol: UDP
47             - containerPort: 6832
48               protocol: UDP
49             - containerPort: 16686
50               protocol: TCP
51             - containerPort: 9411
52               protocol: TCP
53           livenessProbe:
54             httpGet:
55               path: /
56               port: 16686
57           readinessProbe:
58             httpGet:
59               path: /
60               port: 16686
61               initialDelaySeconds: 5
62           resources:
63             {{- toYaml .Values.resources | nindent 12 }}
64       {{- with .Values.nodeSelector }}
65       nodeSelector:
66         {{- toYaml . | nindent 8 }}
67       {{- end }}
68     {{- with .Values.affinity }}
69       affinity:
70         {{- toYaml . | nindent 8 }}
71     {{- end }}
72     {{- with .Values.tolerations }}
73       tolerations:
74         {{- toYaml . | nindent 8 }}
75     {{- end }}