Skip to content
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
2 changes: 1 addition & 1 deletion charts/statefull/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ apiVersion: v1
appVersion: "1.0"
description: A Helm chart for statefull vality services
name: statefull
version: 1.0.28
version: 1.0.29
17 changes: 14 additions & 3 deletions charts/statefull/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,22 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.topologySpreadConstraints }}
{{- if or .Values.topologySpreadConstraints .Values.topologySpreadConstraintsRequired.enabled }}
topologySpreadConstraints:
{{- if .Values.topologySpreadConstraints }}
{{- with .Values.topologySpreadConstraints }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.storage }}
{{- end }}
{{- end }}
{{- if .Values.topologySpreadConstraintsRequired.enabled }}
- labelSelector:
matchLabels:
app.kubernetes.io/instance: {{ .Release.Name }}
maxSkew: 1
topologyKey: topology.kubernetes.io/zone
whenUnsatisfiable: DoNotSchedule
{{- end }}
{{- end }} {{- if .Values.storage }}
volumeClaimTemplates:
- metadata:
name: data
Expand Down
2 changes: 2 additions & 0 deletions charts/statefull/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ nodeSelector: {}
tolerations: []

topologySpreadConstraints: []
topologySpreadConstraintsRequired:
enabled: false

affinity: {}

Expand Down
2 changes: 1 addition & 1 deletion charts/stateless/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ apiVersion: v1
appVersion: "1.0"
description: A Helm chart for stateless vality services
name: stateless
version: 1.0.41
version: 1.0.42
14 changes: 13 additions & 1 deletion charts/stateless/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,19 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.topologySpreadConstraints }}
{{- if or .Values.topologySpreadConstraints .Values.topologySpreadConstraintsRequired.enabled }}
topologySpreadConstraints:
{{- if .Values.topologySpreadConstraints }}
{{- with .Values.topologySpreadConstraints }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
{{- if .Values.topologySpreadConstraintsRequired.enabled }}
- labelSelector:
matchLabels:
app.kubernetes.io/instance: {{ .Release.Name }}
maxSkew: 1
topologyKey: topology.kubernetes.io/zone
whenUnsatisfiable: DoNotSchedule
{{- end }}
{{- end }}
2 changes: 2 additions & 0 deletions charts/stateless/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ nodeSelector: {}
tolerations: []

topologySpreadConstraints: []
topologySpreadConstraintsRequired:
enabled: false

affinity: {}

Expand Down