Skip to content

Commit

Permalink
Set ingester availability_zone based on $zoneName when ingester.zoneA…
Browse files Browse the repository at this point in the history
…wareReplication is enabled.

Signed-off-by: sringel <[email protected]>
  • Loading branch information
sringel authored Aug 7, 2024
1 parent 55304fd commit 0ea930d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ spec:
containers:
- args:
- -target=ingester
{{- if .Values.ingester.zoneAwareReplication.enabled }}
- -config.expand-env=true
{{- end }}
- -config.file=/conf/tempo.yaml
- -mem-ballast-size-mbs=1024
{{- with .Values.ingester.extraArgs }}
Expand All @@ -88,10 +91,20 @@ spec:
containerPort: {{ include "tempo.memberlistBindPort" . }}
- name: http-metrics
containerPort: 3100
{{- if .Values.ingester.zoneAwareReplication.enabled }}
env:
- name: AVAILABILITY_ZONE
value: {{ $zoneName }}
{{- end }}
{{- with .Values.ingester.extraEnv }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- else }}
{{- with .Values.ingester.extraEnv }}
env:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- end }}
{{- with .Values.ingester.extraEnvFrom }}
envFrom:
{{- toYaml . | nindent 12 }}
Expand Down
1 change: 1 addition & 0 deletions charts/tempo-distributed/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1332,6 +1332,7 @@ config: |
ring:
replication_factor: {{ .Values.ingester.config.replication_factor }}
{{- if .Values.ingester.zoneAwareReplication.enabled }}
availability_zone: ${AVAILABILITY_ZONE}
zone_awareness_enabled: true
{{- end }}
kvstore:
Expand Down

0 comments on commit 0ea930d

Please sign in to comment.