Skip to content

Commit

Permalink
Allow topologySpreadConstraints for unleash
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Vickery authored and Patrick Vickery committed Jul 23, 2024
1 parent 8904f5d commit 735e73d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions charts/unleash/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,12 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.topologySpreadConstraints }}
topologySpreadConstraints:
{{- range . }}
- {{ toYaml . | nindent 8 | trim }}
{{- end }}
{{- end }}
{{- with .Values.hostAliases }}
hostAliases:
{{- toYaml . | nindent 8 }}
Expand Down
5 changes: 5 additions & 0 deletions charts/unleash/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -242,3 +242,8 @@ podDisruptionBudget:
enabled: false
minAvailable:
maxUnavailable: 1

topologySpreadConstraints: {}
# - maxSkew: 1
# topologyKey: topology.kubernetes.io/zone
# whenUnsatisfiable: DoNotSchedule

0 comments on commit 735e73d

Please sign in to comment.