Skip to content

Commit

Permalink
fix: update topology spread constraints for custom worker pools
Browse files Browse the repository at this point in the history
Signed-off-by: TessaIO <[email protected]>
  • Loading branch information
TessaIO committed Dec 10, 2024
1 parent 86506d6 commit dc569bb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 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
8 changes: 6 additions & 2 deletions helm-chart/ray-cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ head:
worker:
# If you want to disable the default workergroup
# uncomment the line below
# disabled: true
disabled: true
groupName: workergroup
replicas: 1
minReplicas: 1
Expand Down Expand Up @@ -212,7 +212,7 @@ worker:
additionalWorkerGroups:
smallGroup:
# Disabled by default
disabled: true
disabled: false
replicas: 0
minReplicas: 0
maxReplicas: 3
Expand Down 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 dc569bb

Please sign in to comment.