-
Notifications
You must be signed in to change notification settings - Fork 2.2k
/
deployment-distributor.yaml
124 lines (124 loc) · 4.08 KB
/
deployment-distributor.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "tempo.distributorFullname" . }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "tempo.distributorLabels" . | nindent 4 }}
{{- with .Values.distributor.annotations }}
annotations:
{{ toYaml . | indent 4 }}
{{- end }}
spec:
minReadySeconds: 10
replicas: {{ .Values.distributor.replicas }}
revisionHistoryLimit: 10
selector:
matchLabels:
{{- include "tempo.distributorSelectorLabels" . | nindent 6 }}
template:
metadata:
labels:
{{- include "tempo.distributorLabels" . | nindent 8 }}
{{- include "tempo.gossipRing.selectorLabels" . | nindent 8 }}
annotations:
checksum/config: {{ include (print $.Template.BasePath "/configmap-tempo.yaml") . | sha256sum }}
{{- with .Values.distributor.podAnnotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
serviceAccountName: {{ include "tempo.serviceAccountName" . }}
containers:
- args:
- -target=distributor
- -config.file=/conf/tempo.yaml
- -mem-ballast-size-mbs=1024
{{- with .Values.distributor.extraArgs }}
{{- toYaml . | nindent 12 }}
{{- end }}
image: {{ include "tempo.distributorImage" . }}
imagePullPolicy: {{ .Values.tempo.image.pullPolicy }}
name: distributor
ports:
- containerPort: 7946
name: http-memberlist
protocol: TCP
- containerPort: 3100
name: http
{{- if .Values.traces.jaeger.thriftCompact }}
- containerPort: 6831
name: jaeger-compact
protocol: UDP
{{- end }}
{{- if .Values.traces.jaeger.thriftBinary }}
- containerPort: 6832
name: jaeger-binary
protocol: UDP
{{- end }}
{{- if .Values.traces.jaeger.thriftHttp }}
- containerPort: 14268
name: jaeger-http
protocol: TCP
{{- end }}
{{- if .Values.traces.jaeger.grpc }}
- containerPort: 14250
name: jaeger-grpc
protocol: TCP
{{- end }}
{{- if .Values.traces.zipkin }}
- containerPort: 9411
name: zipkin
protocol: TCP
{{- end }}
{{- if .Values.traces.otlp.http }}
- containerPort: 55681
name: otlp-http
protocol: TCP
{{- end }}
{{- if .Values.traces.otlp.grpc }}
- containerPort: 4317
name: otlp-grpc
protocol: TCP
{{- end }}
{{- if .Values.traces.opencensus }}
- containerPort: 55678
name: opencensus
protocol: TCP
{{- end }}
{{- with .Values.distributor.extraEnv }}
env:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.distributor.extraEnvFrom }}
envFrom:
{{- toYaml . | nindent 12 }}
{{- end }}
readinessProbe:
{{- toYaml .Values.tempo.readinessProbe | nindent 12 }}
resources:
{{- toYaml .Values.distributor.resources | nindent 12 }}
volumeMounts:
- mountPath: /conf
name: tempo-conf
{{- with .Values.distributor.extraVolumeMounts }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.distributor.affinity }}
affinity:
{{- tpl . $ | nindent 8 }}
{{- end }}
{{- with .Values.distributor.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.distributor.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
volumes:
- configMap:
name: {{ template "tempo.fullname" . }}
name: tempo-conf
{{- with .Values.distributor.extraVolumes }}
{{- toYaml . | nindent 8 }}
{{- end }}