Skip to content

Commit

Permalink
Helm:allow topologySpreadConstraints
Browse files Browse the repository at this point in the history
  • Loading branch information
kandrew5 committed Oct 30, 2023
1 parent 8628b15 commit a358eec
Show file tree
Hide file tree
Showing 7 changed files with 61 additions and 1 deletion.
36 changes: 36 additions & 0 deletions docs/sources/setup/install/helm/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,15 @@ null
<td><pre lang="json">
[]
</pre>
</td>
</tr>
<tr>
<td>backend.topologySpreadConstraints</td>
<td>list</td>
<td>Topology Spread Constraints for backend pods</td>
<td><pre lang="json">
[]
</pre>
</td>
</tr>
<tr>
Expand Down Expand Up @@ -1445,6 +1454,15 @@ null
<td><pre lang="json">
[]
</pre>
</td>
</tr>
<tr>
<td>gateway.topologySpreadConstraints</td>
<td>list</td>
<td>Topology Spread Constraints for gateway pods</td>
<td><pre lang="json">
[]
</pre>
</td>
</tr>
<tr>
Expand Down Expand Up @@ -3448,6 +3466,15 @@ null
<td><pre lang="json">
[]
</pre>
</td>
</tr>
<tr>
<td>read.topologySpreadConstraints</td>
<td>list</td>
<td>Topology Spread Constraints for read pods</td>
<td><pre lang="json">
[]
</pre>
</td>
</tr>
<tr>
Expand Down Expand Up @@ -4748,6 +4775,15 @@ null
<td><pre lang="json">
[]
</pre>
</td>
</tr>
<tr>
<td>write.topologySpreadConstraints</td>
<td>list</td>
<td>Topology Spread Constraints for write pods</td>
<td><pre lang="json">
[]
</pre>
</td>
</tr>
</tbody>
Expand Down
2 changes: 1 addition & 1 deletion production/helm/loki/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: loki
description: Helm chart for Grafana Loki in simple, scalable mode
type: application
appVersion: 2.9.2
version: 5.36.0
version: 5.36.1
home: https://grafana.github.io/helm-charts
sources:
- https://github.com/grafana/loki
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,10 @@ spec:
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.backend.topologySpreadConstraints }}
topologySpreadConstraints:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.backend.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ spec:
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.gateway.topologySpreadConstraints }}
topologySpreadConstraints:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.gateway.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
Expand Down
4 changes: 4 additions & 0 deletions production/helm/loki/templates/read/statefulset-read.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ spec:
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.read.topologySpreadConstraints }}
topologySpreadConstraints:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.read.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
Expand Down
4 changes: 4 additions & 0 deletions production/helm/loki/templates/write/statefulset-write.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,10 @@ spec:
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.write.topologySpreadConstraints }}
topologySpreadConstraints:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.write.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
Expand Down
8 changes: 8 additions & 0 deletions production/helm/loki/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -800,6 +800,8 @@ write:
dnsConfig: {}
# -- Node selector for write pods
nodeSelector: {}
# -- Topology Spread Constraints for write pods
topologySpreadConstraints: []
# -- Tolerations for write pods
tolerations: []
# -- The default is to deploy all pods in parallel.
Expand Down Expand Up @@ -976,6 +978,8 @@ read:
dnsConfig: {}
# -- Node selector for read pods
nodeSelector: {}
# -- Topology Spread Constraints for read pods
topologySpreadConstraints: []
# -- Tolerations for read pods
tolerations: []
# -- The default is to deploy all pods in parallel.
Expand Down Expand Up @@ -1077,6 +1081,8 @@ backend:
dnsConfig: {}
# -- Node selector for backend pods
nodeSelector: {}
# -- Topology Spread Constraints for backend pods
topologySpreadConstraints: []
# -- Tolerations for backend pods
tolerations: []
# -- The default is to deploy all pods in parallel.
Expand Down Expand Up @@ -1333,6 +1339,8 @@ gateway:
dnsConfig: {}
# -- Node selector for gateway pods
nodeSelector: {}
# -- Topology Spread Constraints for gateway pods
topologySpreadConstraints: []
# -- Tolerations for gateway pods
tolerations: []
# Gateway service configuration
Expand Down

0 comments on commit a358eec

Please sign in to comment.