Skip to content

Commit 3aebd8c

Browse files
authored
[Feature] Make head serviceType optional (ray-project#851)
Minimal configuration for RayCluster CRs should be as simple as possible. This PR makes serviceType optional and the default is ClusterIP.
1 parent 633ff63 commit 3aebd8c

23 files changed

+10
-39
lines changed

docs/guidance/volcano-integration.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ metadata:
4444
spec:
4545
rayVersion: '2.2.0'
4646
headGroupSpec:
47-
serviceType: ClusterIP
4847
rayStartParams:
4948
block: 'true'
5049
replicas: 1
@@ -108,7 +107,6 @@ metadata:
108107
spec:
109108
rayVersion: '2.2.0'
110109
headGroupSpec:
111-
serviceType: ClusterIP
112110
rayStartParams:
113111
block: 'true'
114112
replicas: 1
@@ -222,7 +220,6 @@ metadata:
222220
spec:
223221
rayVersion: '2.2.0'
224222
headGroupSpec:
225-
serviceType: ClusterIP
226223
rayStartParams:
227224
block: 'true'
228225
replicas: 1

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5706,7 +5706,6 @@ spec:
57065706
type: object
57075707
required:
57085708
- rayStartParams
5709-
- serviceType
57105709
- template
57115710
type: object
57125711
headServiceAnnotations:

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5970,7 +5970,6 @@ spec:
59705970
type: object
59715971
required:
59725972
- rayStartParams
5973-
- serviceType
59745973
- template
59755974
type: object
59765975
headServiceAnnotations:

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5956,7 +5956,6 @@ spec:
59565956
type: object
59575957
required:
59585958
- rayStartParams
5959-
- serviceType
59605959
- template
59615960
type: object
59625961
headServiceAnnotations:

helm-chart/ray-cluster/values.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,5 +199,6 @@ additionalWorkerGroups:
199199
name: log-volume
200200
sidecarContainers: []
201201

202-
service:
203-
type: ClusterIP
202+
# Configuration for Head's Kubernetes Service
203+
service: {}
204+
# type: ClusterIP # The default type is ClusterIP.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ type RayClusterSpec struct {
2828
// HeadGroupSpec are the spec for the head pod
2929
type HeadGroupSpec struct {
3030
// ServiceType is Kubernetes service type of the head service. it will be used by the workers to connect to the head pod
31-
ServiceType v1.ServiceType `json:"serviceType"`
31+
ServiceType v1.ServiceType `json:"serviceType,omitempty"`
3232
// EnableIngress indicates whether operator should create ingress object for head service or not.
3333
EnableIngress *bool `json:"enableIngress,omitempty"`
3434
// HeadGroupSpec.Replicas is deprecated and ignored; there can only be one head pod per Ray cluster.

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5706,7 +5706,6 @@ spec:
57065706
type: object
57075707
required:
57085708
- rayStartParams
5709-
- serviceType
57105709
- template
57115710
type: object
57125711
headServiceAnnotations:

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5970,7 +5970,6 @@ spec:
59705970
type: object
59715971
required:
59725972
- rayStartParams
5973-
- serviceType
59745973
- template
59755974
type: object
59765975
headServiceAnnotations:

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5956,7 +5956,6 @@ spec:
59565956
type: object
59575957
required:
59585958
- rayStartParams
5959-
- serviceType
59605959
- template
59615960
type: object
59625961
headServiceAnnotations:

ray-operator/config/samples/ray-cluster.autoscaler.large.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ spec:
5757
memory: "512Mi"
5858
# Ray head pod template
5959
headGroupSpec:
60-
# Kubernetes Service Type, valid values are 'ClusterIP', 'NodePort' and 'LoadBalancer'
61-
serviceType: ClusterIP
6260
# the following params are used to complete the ray start: ray start --head --block --port=6379 ...
6361
rayStartParams:
6462
# Flag "no-monitor" will be automatically set when autoscaling is enabled.

0 commit comments

Comments
 (0)