Skip to content

Commit

Permalink
Merge pull request #102 from arthurk/add-tsp
Browse files Browse the repository at this point in the history
Add topologySpreadConstraints to metabase chart
  • Loading branch information
pmint93 authored Mar 11, 2024
2 parents 9b5bffe + 778fa03 commit ac64a83
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/metabase/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description:
The easy, open source way for everyone in your company to ask questions
and learn from data.
name: metabase
version: 2.11.0
version: 2.12.0
appVersion: v0.48.3
maintainers:
- name: pmint93
Expand Down
6 changes: 5 additions & 1 deletion charts/metabase/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ spec:
name: metrics
{{- end }}
{{- if .Values.securityContext}}
securityContext:
securityContext:
{{- .Values.securityContext | toYaml | nindent 12 }}
{{- end }}
livenessProbe:
Expand Down Expand Up @@ -295,6 +295,10 @@ spec:
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{ toYaml . | indent 8 }}
{{- end }}
{{- with .Values.topologySpreadConstraints }}
topologySpreadConstraints:
{{ toYaml . | indent 8 }}
{{- end }}
{{- if .Values.priorityClass}}
Expand Down
4 changes: 4 additions & 0 deletions charts/metabase/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,10 @@ tolerations: []
##
affinity: {}

## Spread Constraints for pod assignment
## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
topologySpreadConstraints: []

## PriorityClass for pod assignment
## ref:
## https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/#pod-priority
Expand Down

0 comments on commit ac64a83

Please sign in to comment.