Skip to content

Commit

Permalink
Add topology spread constraints
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Minkin <minkinj@amazon.com>
  • Loading branch information
jonminkin97 committed Feb 6, 2025
1 parent b476e6b commit 0eb3d0c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions helm-charts/common/ollama-service/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,3 +119,12 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.evenly_distributed }}
topologySpreadConstraints:
- maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: ScheduleAnyway
labelSelector:
matchLabels:
{{- include "ollama-service.selectorLabels" . | nindent 14 }}
{{- end }}

0 comments on commit 0eb3d0c

Please sign in to comment.