Skip to content

Commit 88577eb

Browse files
authored
Merge branch 'master' into multihost-indexing
Signed-off-by: Ryan O'Leary <[email protected]>
2 parents e9a8b23 + e36183d commit 88577eb

File tree

18 files changed

+843
-35
lines changed

18 files changed

+843
-35
lines changed

docs/reference/api.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,8 @@ _Appears in:_
193193
| `template` _[PodTemplateSpec](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#podtemplatespec-v1-core)_ | Template is the exact pod template used in K8s deployments, statefulsets, etc. | | |
194194
| `headService` _[Service](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#service-v1-core)_ | HeadService is the Kubernetes service of the head pod. | | |
195195
| `enableIngress` _boolean_ | EnableIngress indicates whether operator should create ingress object for head service or not. | | |
196+
| `resources` _object (keys:string, values:string)_ | Resources specifies the resource quantities for the head group.<br />These values override the resources passed to `rayStartParams` for the group, but<br />have no effect on the resources set at the K8s Pod container level. | | |
197+
| `labels` _object (keys:string, values:string)_ | Labels specifies the Ray node labels for the head group.<br />These labels will also be added to the Pods of this head group and override the `--labels`<br />argument passed to `rayStartParams`. | | |
196198
| `rayStartParams` _object (keys:string, values:string)_ | RayStartParams are the params of the start command: node-manager-port, object-store-memory, ... | | |
197199
| `serviceType` _[ServiceType](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#servicetype-v1-core)_ | ServiceType is Kubernetes service type of the head service. it will be used by the workers to connect to the head pod | | |
198200

@@ -472,6 +474,8 @@ _Appears in:_
472474
| `minReplicas` _integer_ | MinReplicas denotes the minimum number of desired Pods for this worker group. | 0 | |
473475
| `maxReplicas` _integer_ | MaxReplicas denotes the maximum number of desired Pods for this worker group, and the default value is maxInt32. | 2147483647 | |
474476
| `idleTimeoutSeconds` _integer_ | IdleTimeoutSeconds denotes the number of seconds to wait before the v2 autoscaler terminates an idle worker pod of this type.<br />This value is only used with the Ray Autoscaler enabled and defaults to the value set by the AutoscalingConfig if not specified for this worker group. | | |
477+
| `resources` _object (keys:string, values:string)_ | Resources specifies the resource quantities for this worker group.<br />These values override the resources passed to `rayStartParams` for the group, but<br />have no effect on the resources set at the K8s Pod container level. | | |
478+
| `labels` _object (keys:string, values:string)_ | Labels specifies the Ray node labels for this worker group.<br />These labels will also be added to the Pods of this worker group and override the `--labels`<br />argument passed to `rayStartParams`. | | |
475479
| `rayStartParams` _object (keys:string, values:string)_ | RayStartParams are the params of the start command: address, object-store-memory, ... | | |
476480
| `template` _[PodTemplateSpec](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#podtemplatespec-v1-core)_ | Template is a pod template for the worker | | |
477481
| `scaleStrategy` _[ScaleStrategy](#scalestrategy)_ | ScaleStrategy defines which pods to remove | | |

helm-chart/kuberay-operator/crds/ray.io_rayclusters.yaml

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

helm-chart/kuberay-operator/crds/ray.io_rayjobs.yaml

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

helm-chart/kuberay-operator/crds/ray.io_rayservices.yaml

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ray-operator/apis/ray/v1/raycluster_types.go

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,16 @@ type HeadGroupSpec struct {
7575
// EnableIngress indicates whether operator should create ingress object for head service or not.
7676
// +optional
7777
EnableIngress *bool `json:"enableIngress,omitempty"`
78+
// Resources specifies the resource quantities for the head group.
79+
// These values override the resources passed to `rayStartParams` for the group, but
80+
// have no effect on the resources set at the K8s Pod container level.
81+
// +optional
82+
Resources map[string]string `json:"resources,omitempty"`
83+
// Labels specifies the Ray node labels for the head group.
84+
// These labels will also be added to the Pods of this head group and override the `--labels`
85+
// argument passed to `rayStartParams`.
86+
// +optional
87+
Labels map[string]string `json:"labels,omitempty"`
7888
// RayStartParams are the params of the start command: node-manager-port, object-store-memory, ...
7989
// +optional
8090
RayStartParams map[string]string `json:"rayStartParams"`
@@ -106,6 +116,16 @@ type WorkerGroupSpec struct {
106116
// This value is only used with the Ray Autoscaler enabled and defaults to the value set by the AutoscalingConfig if not specified for this worker group.
107117
// +optional
108118
IdleTimeoutSeconds *int32 `json:"idleTimeoutSeconds,omitempty"`
119+
// Resources specifies the resource quantities for this worker group.
120+
// These values override the resources passed to `rayStartParams` for the group, but
121+
// have no effect on the resources set at the K8s Pod container level.
122+
// +optional
123+
Resources map[string]string `json:"resources,omitempty"`
124+
// Labels specifies the Ray node labels for this worker group.
125+
// These labels will also be added to the Pods of this worker group and override the `--labels`
126+
// argument passed to `rayStartParams`.
127+
// +optional
128+
Labels map[string]string `json:"labels,omitempty"`
109129
// RayStartParams are the params of the start command: address, object-store-memory, ...
110130
// +optional
111131
RayStartParams map[string]string `json:"rayStartParams"`

ray-operator/apis/ray/v1/zz_generated.deepcopy.go

Lines changed: 28 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ray-operator/config/crd/bases/ray.io_rayclusters.yaml

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ray-operator/config/crd/bases/ray.io_rayjobs.yaml

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ray-operator/config/crd/bases/ray.io_rayservices.yaml

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)