Skip to content

Commit

Permalink
Support nodeSelector and tolerations in ray clusters deployed by helm (
Browse files Browse the repository at this point in the history
…ray-project#181)

Co-authored-by: Eugene Brodsky <[email protected]>
  • Loading branch information
ebr and Eugene Brodsky authored Mar 10, 2022
1 parent 6b38c13 commit 038b4a6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions helm-chart/ray-cluster/templates/raycluster-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ spec:
{{- toYaml .Values.head.containerEnv | nindent 14}}
volumes: {{- toYaml .Values.head.volumes | nindent 10 }}
affinity: {{- toYaml .Values.head.affinity | nindent 10 }}
tolerations: {{- toYaml .Values.head.tolerations | nindent 10 }}
nodeSelector: {{- toYaml .Values.head.nodeSelector | nindent 10 }}
metadata:
annotations: {{- toYaml .Values.head.annotations | nindent 10 }}
labels:
Expand Down Expand Up @@ -62,6 +64,8 @@ spec:
ports: {{- toYaml .Values.worker.ports | nindent 14}}
volumes: {{- toYaml .Values.worker.volumes | nindent 10 }}
affinity: {{- toYaml .Values.worker.affinity | nindent 10 }}
tolerations: {{- toYaml .Values.worker.tolerations | nindent 10 }}
nodeSelector: {{- toYaml .Values.worker.nodeSelector | nindent 10 }}
metadata:
annotations: {{- toYaml .Values.worker.annotations | nindent 10 }}
labels:
Expand Down
3 changes: 3 additions & 0 deletions helm-chart/ray-cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ head:
requests:
cpu: 200m
annotations: {}
nodeSelector: {}
tolerations: []
affinity: {}
volumes:
- name: log-volume
emptyDir: { }
Expand Down

0 comments on commit 038b4a6

Please sign in to comment.