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
4 changes: 4 additions & 0 deletions chart/templates/dashboard/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,8 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.dashboard.frontend.topologySpreadConstraints }}
topologySpreadConstraints:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
17 changes: 17 additions & 0 deletions chart/templates/frontproxy/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ spec:
- name: config
configMap:
name: {{ .Chart.Name }}-frontproxy
{{- if eq .Values.frontproxy.topologySpreadConstraints nil }}
topologySpreadConstraints:
- maxSkew: 1
topologyKey: kubernetes.io/hostname
Expand All @@ -65,4 +66,20 @@ spec:
matchLabels:
{{- include "s3proxy.selectorLabels" . | nindent 14 }}
app.kubernetes.io/component: frontproxy
{{- else if .Values.frontproxy.topologySpreadConstraints }}
topologySpreadConstraints:
{{- toYaml .Values.frontproxy.topologySpreadConstraints | nindent 8 }}
{{- end }}
{{- with .Values.frontproxy.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.frontproxy.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.frontproxy.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
16 changes: 16 additions & 0 deletions chart/templates/redis/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,20 @@ spec:
{{- else }}
emptyDir: {}
{{- end }}
{{- with .Values.redis.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.redis.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.redis.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.redis.topologySpreadConstraints }}
topologySpreadConstraints:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
10 changes: 10 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ redis:
limits:
cpu: "500m"
memory: "256Mi"
nodeSelector: {}
affinity: {}
tolerations: []
topologySpreadConstraints: []

# External Redis — used when `redis.enabled: false`. Point at a Redis you run
# yourself (managed service, shared cluster, your own HA setup).
Expand Down Expand Up @@ -124,6 +128,7 @@ dashboard:
nodeSelector: {}
affinity: {}
tolerations: []
topologySpreadConstraints: []

# Optional dedicated Ingress for the dashboard. OFF by default — the dashboard
# should not be internet-facing unless you explicitly expose it (ideally behind
Expand Down Expand Up @@ -184,6 +189,11 @@ frontproxy:
podDisruptionBudget:
enabled: true
minAvailable: 1
nodeSelector: {}
affinity: {}
tolerations: []
# null (default): spread pods across nodes. Set to [] to disable, or provide custom rules.
topologySpreadConstraints:

# Optional Ingress to expose S3 operations OUTSIDE the cluster. Routes to the
# front proxy, so external clients also get even per-request distribution —
Expand Down