Skip to content
9 changes: 9 additions & 0 deletions docs/sources/setup/install/helm/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -12825,6 +12825,15 @@ null
<td><pre lang="json">
[]
</pre>
</td>
</tr>
<tr>
<td>singleBinary.topologySpreadConstraints</td>
<td>list</td>
<td>Topology Spread Constraints for single binary pods The value will be passed through tpl.</td>
<td><pre lang="json">
[]
</pre>
</td>
</tr>
<tr>
Expand Down
2 changes: 2 additions & 0 deletions production/helm/loki/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ Entries should include a reference to the pull request that introduced the chang

## Unreleased

- [FEATURE] Add configurable `singleBinary.topologySpreadConstraints`. [#19534](https://github.com/grafana/loki/pull/19534)

## 6.45.2

- [BUGFIX] Fix incorrect GEL version in the chart and reference.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ spec:
{{- end }}
app.kubernetes.io/part-of: memberlist
spec:
{{- with .Values.singleBinary.topologySpreadConstraints }}
topologySpreadConstraints:
{{- tpl ( . | toYaml) $ | nindent 8 }}
{{- end }}
serviceAccountName: {{ include "loki.serviceAccountName" . }}
automountServiceAccountToken: {{ .Values.serviceAccount.automountServiceAccountToken }}
{{ include "loki.enableServiceLinks" . }}
Expand Down
3 changes: 3 additions & 0 deletions production/helm/loki/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1499,6 +1499,9 @@ singleBinary:
app.kubernetes.io/name: '{{ include "loki.name" . }}'
app.kubernetes.io/instance: '{{ .Release.Name }}'
topologyKey: kubernetes.io/hostname
# -- Topology Spread Constraints for single binary pods
# The value will be passed through tpl.
topologySpreadConstraints: []
# -- DNS config for single binary pods
dnsConfig: {}
# -- Node selector for single binary pods
Expand Down
Loading