Skip to content

Commit

Permalink
fix: update topology spread constraints for custom worker pools (#2633)
Browse files Browse the repository at this point in the history
Signed-off-by: TessaIO <[email protected]>
  • Loading branch information
TessaIO authored Dec 11, 2024
1 parent b5bcb86 commit 9cd80cc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helm-chart/ray-cluster/templates/raycluster-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,8 @@ spec:
{{ if $values.volumes }}
volumes: {{- toYaml $values.volumes | nindent 10 }}
{{- end }}
{{- if .Values.topologySpreadConstraints.enabled }}
topologySpreadConstraints: {{- toYaml .Values.worker.topologySpreadConstraints | nindent 10 }}
{{- if $values.topologySpreadConstraints }}
topologySpreadConstraints: {{- toYaml $values.topologySpreadConstraints | nindent 10 }}
{{- end }}
affinity: {{- toYaml $values.affinity | nindent 10 }}
{{ if $values.priorityClassName }}
Expand Down
4 changes: 4 additions & 0 deletions helm-chart/ray-cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,10 @@ additionalWorkerGroups:
command: []
args: []

# Topology Spread Constraints for worker pods
# See: https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/
topologySpreadConstraints: {}

# Custom pod DNS configuration
# See https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-dns-config
# dnsConfig:
Expand Down

0 comments on commit 9cd80cc

Please sign in to comment.