Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added topologySpreadConstraints #48

Merged
merged 1 commit into from
Oct 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ For more information on configuring the HTTP component, refer to the [Benthos HT
| podDisruptionBudget.minAvailable | Min number of pods available at all times | "" |
| podDisruptionBudget.maxUnavailable | Max unavailable number of pods | "" |
| watch | Enables watch mode | false |
| topologySpreadConstraints | Configure topology spread constraints | [] |
| initContainers | Add any custom init container | [] |
| config | Benthos component configuration | "" |

Expand Down
4 changes: 4 additions & 0 deletions templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.topologySpreadConstraints }}
topologySpreadConstraints:
{{- toYaml . | nindent 8 }}
{{- end }}
volumes:
- name: config
configMap:
Expand Down
3 changes: 3 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -167,5 +167,8 @@ args: []
# EXPERIMENTAL: watch config files for changes and automatically apply them
watch: false

# Spread incoming Pod in relation to the existing Pods across your cluster. https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/#topologyspreadconstraints-field
topologySpreadConstraints: []

# /benthos.yaml configuration
config: |
Loading