Skip to content

Commit 1f52793

Browse files
committed
[tempo-distributed] Support initContainers and extraContainers for distributor
Signed-off-by: Andy Lo-A-Foe <[email protected]>
1 parent f5cacaa commit 1f52793

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

charts/tempo-distributed/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,7 @@ The memcached default args are removed and should be provided manually. The sett
354354
| distributor.config.log_received_spans | object | `{"enabled":false,"filter_by_status_error":false,"include_all_attributes":false}` | Enable to log every received span to help debug ingestion or calculate span error distributions using the logs |
355355
| distributor.config.log_received_traces | string | `nil` | WARNING: Deprecated. Use log_received_spans instead. |
356356
| distributor.extraArgs | list | `[]` | Additional CLI args for the distributor |
357+
| distributor.extraContainers | list | `[]` | Containers to add to the distributor pod |
357358
| distributor.extraEnv | list | `[]` | Environment variables to add to the distributor pods |
358359
| distributor.extraEnvFrom | list | `[]` | Environment variables from secrets or configmaps to add to the distributor pods |
359360
| distributor.extraVolumeMounts | list | `[]` | Extra volumes for distributor pods |
@@ -363,6 +364,7 @@ The memcached default args are removed and should be provided manually. The sett
363364
| distributor.image.registry | string | `nil` | The Docker registry for the distributor image. Overrides `tempo.image.registry` |
364365
| distributor.image.repository | string | `nil` | Docker image repository for the distributor image. Overrides `tempo.image.repository` |
365366
| distributor.image.tag | string | `nil` | Docker image tag for the distributor image. Overrides `tempo.image.tag` |
367+
| distributor.initContainers | list | `[]` | Init containers to add to the distributor pods |
366368
| distributor.maxUnavailable | int | `1` | Pod Disruption Budget maxUnavailable |
367369
| distributor.nodeSelector | object | `{}` | Node selector for distributor pods |
368370
| distributor.podAnnotations | object | `{}` | Annotations for distributor pods |

charts/tempo-distributed/templates/distributor/deployment-distributor.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ spec:
5252
hostAliases:
5353
{{- toYaml . | nindent 8 }}
5454
{{- end }}
55+
initContainers:
56+
{{- toYaml .Values.distributor.initContainers | nindent 8 }}
5557
containers:
5658
- args:
5759
- -target=distributor
@@ -144,6 +146,9 @@ spec:
144146
{{- with .Values.distributor.extraVolumeMounts }}
145147
{{- toYaml . | nindent 12 }}
146148
{{- end }}
149+
{{- with .Values.distributor.extraContainers }}
150+
{{- toYaml . | nindent 8 }}
151+
{{- end }}
147152
terminationGracePeriodSeconds: {{ .Values.distributor.terminationGracePeriodSeconds }}
148153
{{- if semverCompare ">= 1.19-0" .Capabilities.KubeVersion.Version }}
149154
{{- with .Values.distributor.topologySpreadConstraints }}

charts/tempo-distributed/values.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -525,6 +525,10 @@ distributor:
525525
extraEnv: []
526526
# -- Environment variables from secrets or configmaps to add to the distributor pods
527527
extraEnvFrom: []
528+
# -- Init containers to add to the distributor pods
529+
initContainers: []
530+
# -- Containers to add to the distributor pod
531+
extraContainers: []
528532
# -- Resource requests and limits for the distributor
529533
resources: {}
530534
# -- Grace period to allow the distributor to shutdown before it is killed

0 commit comments

Comments
 (0)