File tree 14 files changed +47
-13
lines changed
14 files changed +47
-13
lines changed Original file line number Diff line number Diff line change @@ -48,12 +48,22 @@ runs:
48
48
docker images ls -a
49
49
shell : bash
50
50
51
- - name : Run configuration tests for sample YAML files.
52
- # Depends on the KubeRay operator image built in previous steps.
51
+ - name : Run tests for sample YAML files with the nightly operator.
52
+ # Depends on the KubeRay operator image built in previous steps
53
+ env :
54
+ GITHUB_ACTIONS : true
55
+ RAY_IMAGE : rayproject/ray:${{ inputs.ray_version }}
56
+ OPERATOR_IMAGE : kuberay/operator:${{ steps.vars.outputs.sha_short }}
57
+ run : |
58
+ python tests/test_sample_raycluster_yamls.py
59
+ shell : bash
60
+
61
+ - name : Run tests for sample YAML files with the latest KubeRay release.
62
+ # Depends on latest KubeRay release.
63
+ env :
64
+ GITHUB_ACTIONS : true
65
+ RAY_IMAGE : rayproject/ray:${{ inputs.ray_version }}
66
+ OPERATOR_IMAGE : kuberay/operator:v0.4.0 # The operator image in the latest KubeRay release.
53
67
run : |
54
- echo "Using Ray image ${{ inputs.ray_version }}"
55
- GITHUB_ACTIONS=true \
56
- RAY_IMAGE="rayproject/ray:${{ inputs.ray_version }}" \
57
- OPERATOR_IMAGE="kuberay/operator:${{ steps.vars.outputs.sha_short }}" \
58
68
python tests/test_sample_raycluster_yamls.py
59
69
shell : bash
Original file line number Diff line number Diff line change @@ -378,3 +378,4 @@ jobs:
378
378
- uses : ./.github/workflows/actions/configuration
379
379
with :
380
380
ray_version : 2.1.0
381
+
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ metadata:
44
44
spec:
45
45
rayVersion: '2.2.0'
46
46
headGroupSpec:
47
+ serviceType: ClusterIP
47
48
rayStartParams:
48
49
block: 'true'
49
50
replicas: 1
@@ -107,6 +108,7 @@ metadata:
107
108
spec:
108
109
rayVersion: '2.2.0'
109
110
headGroupSpec:
111
+ serviceType: ClusterIP
110
112
rayStartParams:
111
113
block: 'true'
112
114
replicas: 1
@@ -220,6 +222,7 @@ metadata:
220
222
spec:
221
223
rayVersion: '2.2.0'
222
224
headGroupSpec:
225
+ serviceType: ClusterIP
223
226
rayStartParams:
224
227
block: 'true'
225
228
replicas: 1
Original file line number Diff line number Diff line change @@ -200,5 +200,6 @@ additionalWorkerGroups:
200
200
sidecarContainers : []
201
201
202
202
# Configuration for Head's Kubernetes Service
203
- service : {}
204
- # type: ClusterIP # The default type is ClusterIP.
203
+ service :
204
+ # This is optional, and the default is ClusterIP.
205
+ type : ClusterIP
Original file line number Diff line number Diff line change 57
57
memory : " 512Mi"
58
58
# Ray head pod template
59
59
headGroupSpec :
60
+ serviceType : ClusterIP # optional
60
61
# the following params are used to complete the ray start: ray start --head --block --port=6379 ...
61
62
rayStartParams :
62
63
# Flag "no-monitor" will be automatically set when autoscaling is enabled.
Original file line number Diff line number Diff line change 49
49
memory : " 512Mi"
50
50
# Ray head pod template
51
51
headGroupSpec :
52
+ serviceType : ClusterIP # optional
52
53
# the following params are used to complete the ray start: ray start --head --block ...
53
54
rayStartParams :
54
55
dashboard-host : ' 0.0.0.0'
Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ metadata:
79
79
spec :
80
80
rayVersion : ' 2.2.0'
81
81
headGroupSpec :
82
+ serviceType : ClusterIP # optional
82
83
replicas : 1
83
84
rayStartParams :
84
85
dashboard-host : ' 0.0.0.0'
Original file line number Diff line number Diff line change 13
13
rayVersion : ' 2.2.0' # should match the Ray version in the image of the containers
14
14
# Ray head pod template
15
15
headGroupSpec :
16
+ serviceType : ClusterIP # optional
16
17
# the following params are used to complete the ray start: ray start --head --block ...
17
18
rayStartParams :
18
19
dashboard-host : ' 0.0.0.0'
Original file line number Diff line number Diff line change 38
38
# #####################headGroupSpecs#################################
39
39
# Ray head pod template
40
40
headGroupSpec :
41
+ serviceType : ClusterIP # optional
41
42
# the following params are used to complete the ray start: ray start --head --block ...
42
43
rayStartParams :
43
44
dashboard-host : ' 0.0.0.0'
Original file line number Diff line number Diff line change 13
13
rayVersion : ' 2.2.0' # should match the Ray version in the image of the containers
14
14
# Ray head pod template
15
15
headGroupSpec :
16
+ serviceType : ClusterIP # optional
16
17
# the following params are used to complete the ray start: ray start --head --block --redis-port=6379 ...
17
18
rayStartParams :
18
19
dashboard-host : ' 0.0.0.0'
Original file line number Diff line number Diff line change 18
18
rayVersion : ' 2.2.0' # should match the Ray version in the image of the containers
19
19
# Ray head pod template
20
20
headGroupSpec :
21
+ serviceType : ClusterIP # optional
21
22
# the following params are used to complete the ray start: ray start --head --block --redis-port=6379 ...
22
23
rayStartParams :
23
24
dashboard-host : ' 0.0.0.0'
Original file line number Diff line number Diff line change 46
46
# #####################headGroupSpecs#################################
47
47
# Ray head pod template.
48
48
headGroupSpec :
49
+ serviceType : ClusterIP # optional
49
50
# the following params are used to complete the ray start: ray start --head --block --redis-port=6379 ...
50
51
rayStartParams :
51
52
port : ' 6379' # should match container port named gcs-server
Original file line number Diff line number Diff line change 13
13
rayVersion : ' 2.2.0'
14
14
# Ray head pod configuration
15
15
headGroupSpec :
16
+ serviceType : ClusterIP # optional
16
17
# for the head group, replicas should always be 1.
17
18
# headGroupSpec.replicas is deprecated in KubeRay >= 0.3.0.
18
19
replicas : 1
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ class CONST:
17
17
# Docker images
18
18
OPERATOR_IMAGE_KEY = "kuberay-operator-image"
19
19
RAY_IMAGE_KEY = "ray-image"
20
+ KUBERAY_LATEST_RELEASE = "kuberay/operator:v0.4.0"
20
21
21
22
# Kubernetes API clients
22
23
K8S_CR_CLIENT_KEY = "k8s-cr-api-client"
@@ -109,12 +110,21 @@ def download_images():
109
110
110
111
def __install_crd_and_operator (self ):
111
112
"""Install both CRD and KubeRay operator by kuberay-operator chart"""
112
- logger .info ("Install both CRD and KubeRay operator by kuberay-operator chart" )
113
113
repo , tag = self .docker_image_dict [CONST .OPERATOR_IMAGE_KEY ].split (':' )
114
- shell_subprocess_run (
115
- f"helm install kuberay-operator { CONST .HELM_CHART_ROOT } /kuberay-operator/ "
116
- f"--set image.repository={ repo } ,image.tag={ tag } "
117
- )
114
+ if f"{ repo } :{ tag } " == CONST .KUBERAY_LATEST_RELEASE :
115
+ logger .info ("Install both CRD and KubeRay operator with the latest release." )
116
+ shell_subprocess_run (
117
+ "helm repo add kuberay https://ray-project.github.io/kuberay-helm/"
118
+ )
119
+ shell_subprocess_run (
120
+ f"helm install kuberay-operator kuberay/kuberay-operator --version { tag [1 :]} "
121
+ )
122
+ else :
123
+ logger .info ("Install both nightly CRD and KubeRay operator by kuberay-operator chart" )
124
+ shell_subprocess_run (
125
+ f"helm install kuberay-operator { CONST .HELM_CHART_ROOT } /kuberay-operator/ "
126
+ f"--set image.repository={ repo } ,image.tag={ tag } "
127
+ )
118
128
119
129
def shell_subprocess_run (command , check = True ):
120
130
"""
You can’t perform that action at this time.
0 commit comments