Skip to content
Open
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
3 changes: 3 additions & 0 deletions helm-chart/ray-cluster/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ helm uninstall raycluster
| head.labels | object | `{}` | Labels for the head pod |
| head.serviceAccountName | string | `""` | |
| head.restartPolicy | string | `""` | |
| head.runtimeClassName | string | `""` | runtimeClassName is the name of the RuntimeClass to use to run the head Pod. |
| head.containerEnv | list | `[]` | |
| head.envFrom | list | `[]` | envFrom to pass to head pod |
| head.resources.limits.cpu | string | `"1"` | |
Expand Down Expand Up @@ -113,6 +114,7 @@ helm uninstall raycluster
| worker.labels | object | `{}` | Labels for the worker pod |
| worker.serviceAccountName | string | `""` | |
| worker.restartPolicy | string | `""` | |
| worker.runtimeClassName | string | `""` | runtimeClassName is the name of the RuntimeClass to use to run the worker Pods. |
| worker.initContainers | list | `[]` | Init containers to add to the worker pod |
| worker.containerEnv | list | `[]` | |
| worker.envFrom | list | `[]` | envFrom to pass to worker pod |
Expand Down Expand Up @@ -142,6 +144,7 @@ helm uninstall raycluster
| additionalWorkerGroups.smallGroup.labels | object | `{}` | Labels for the additional worker pod |
| additionalWorkerGroups.smallGroup.serviceAccountName | string | `""` | |
| additionalWorkerGroups.smallGroup.restartPolicy | string | `""` | |
| additionalWorkerGroups.smallGroup.runtimeClassName | string | `""` | runtimeClassName for this additional worker group. Empty string means default runtime. |
| additionalWorkerGroups.smallGroup.containerEnv | list | `[]` | |
| additionalWorkerGroups.smallGroup.envFrom | list | `[]` | envFrom to pass to additional worker pod |
| additionalWorkerGroups.smallGroup.resources.limits.cpu | int | `1` | |
Expand Down
9 changes: 9 additions & 0 deletions helm-chart/ray-cluster/templates/raycluster-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@ spec:
{{- with .Values.head.restartPolicy }}
restartPolicy: {{ . }}
{{- end }}
{{- with .Values.head.runtimeClassName }}
runtimeClassName: {{ . }}
{{- end }}
{{- with .Values.head.serviceAccountName }}
serviceAccountName: {{ . }}
{{- end }}
Expand Down Expand Up @@ -281,6 +284,9 @@ spec:
{{- with .Values.worker.restartPolicy }}
restartPolicy: {{ . }}
{{- end }}
{{- with .Values.worker.runtimeClassName }}
runtimeClassName: {{ . }}
{{- end }}
{{- with .Values.worker.serviceAccountName }}
serviceAccountName: {{ . }}
{{- end }}
Expand Down Expand Up @@ -408,6 +414,9 @@ spec:
{{- with $values.restartPolicy }}
restartPolicy: {{ . }}
{{- end }}
{{- with $values.runtimeClassName }}
runtimeClassName: {{ . }}
{{- end }}
{{- with $values.serviceAccountName }}
serviceAccountName: {{ . }}
{{- end }}
Expand Down
29 changes: 29 additions & 0 deletions helm-chart/ray-cluster/tests/raycluster_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2153,3 +2153,32 @@ tests:
- equal:
path: spec.workerGroupSpecs[?(@.groupName=="smallGroup")].template.spec.securityContext.fsGroup
value: 3000

- it: Should set head runtimeClassName when `head.runtimeClassName` is set
set:
head:
runtimeClassName: nvidia
asserts:
- equal:
path: spec.headGroupSpec.template.spec.runtimeClassName
value: nvidia

- it: Should set worker runtimeClassName when `worker.runtimeClassName` is set
set:
worker:
runtimeClassName: nvidia
asserts:
- equal:
path: spec.workerGroupSpecs[?(@.groupName=="workergroup")].template.spec.runtimeClassName
value: nvidia

- it: Should set additional worker group runtimeClassName when `additionalWorkerGroups.smallGroup.runtimeClassName` is set
set:
additionalWorkerGroups:
smallGroup:
disabled: false
runtimeClassName: nvidia
asserts:
- equal:
path: spec.workerGroupSpecs[?(@.groupName=="smallGroup")].template.spec.runtimeClassName
value: nvidia
9 changes: 9 additions & 0 deletions helm-chart/ray-cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ head:
serviceAccountName: ""
restartPolicy: ""

# -- runtimeClassName is the name of the RuntimeClass to use to run the head Pod.
runtimeClassName: ""

# containerEnv specifies environment variables for the Ray container,
# Follows standard K8s container env schema.
containerEnv: []
Expand Down Expand Up @@ -211,6 +214,9 @@ worker:
serviceAccountName: ""
restartPolicy: ""

# -- runtimeClassName is the name of the RuntimeClass to use to run the worker Pods.
runtimeClassName: ""

# -- Init containers to add to the worker pod
initContainers: []

Expand Down Expand Up @@ -319,6 +325,9 @@ additionalWorkerGroups:
serviceAccountName: ""
restartPolicy: ""

# -- runtimeClassName for this additional worker group. Empty string means default runtime.
runtimeClassName: ""

# containerEnv specifies environment variables for the Ray container,
# Follows standard K8s container env schema.
containerEnv: []
Expand Down
Loading