Skip to content

Commit

Permalink
fix(metrics): set affinity for target allocator
Browse files Browse the repository at this point in the history
  • Loading branch information
aboguszewski-sumo committed Nov 23, 2023
1 parent 6de9eeb commit 5c38882
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions .changelog/3412.fixed.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fix(metrics): set affinity for target allocator
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ spec:
tolerations:
{{ toYaml .Values.sumologic.metrics.collector.otelcol.tolerations | indent 6 }}
{{- end }}
{{- if .Values.sumologic.metrics.collector.otelcol.affinity }}
affinity:
{{ toYaml .Values.sumologic.metrics.collector.otelcol.affinity | indent 6 }}
{{- end }}
{{- if .Values.sumologic.metrics.collector.otelcol.nodeSelector }}
nodeSelector:
{{ toYaml .Values.sumologic.metrics.collector.otelcol.nodeSelector | indent 4 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,15 @@ spec:
- effect: NoSchedule
key: null
operator: Exists
affinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: topology.kubernetes.io/zone
operator: In
values:
- sumo-east1
- sumo-west1
nodeSelector:
workingGroup: production
tolerations:
Expand Down

0 comments on commit 5c38882

Please sign in to comment.