Skip to content

Commit 296d480

Browse files
[Chore][Samples] Rename ray-cluster.mini.yaml and add workerGroupSpecs (#2100)
1 parent e0318a3 commit 296d480

File tree

1 file changed

+23
-9
lines changed

1 file changed

+23
-9
lines changed

ray-operator/config/samples/ray-cluster.mini.yaml renamed to ray-operator/config/samples/ray-cluster.sample.yaml

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,12 @@
55
apiVersion: ray.io/v1
66
kind: RayCluster
77
metadata:
8-
labels:
9-
controller-tools.k8s.io: "1.0"
10-
# A unique identifier for the head node and workers of this cluster.
11-
name: raycluster-mini
8+
name: raycluster-sample
129
spec:
1310
rayVersion: '2.9.0' # should match the Ray version in the image of the containers
1411
# Ray head pod template
1512
headGroupSpec:
16-
# The `rayStartParams` are used to configure the `ray start` command.
17-
# See https://github.com/ray-project/kuberay/blob/master/docs/guidance/rayStartParams.md for the default settings of `rayStartParams` in KubeRay.
18-
# See https://docs.ray.io/en/latest/cluster/cli.html#ray-start for all available options in `rayStartParams`.
19-
rayStartParams:
20-
dashboard-host: '0.0.0.0'
13+
rayStartParams: {}
2114
#pod template
2215
template:
2316
spec:
@@ -38,3 +31,24 @@ spec:
3831
name: dashboard
3932
- containerPort: 10001
4033
name: client
34+
workerGroupSpecs:
35+
# the pod replicas in this group typed worker
36+
- replicas: 1
37+
minReplicas: 1
38+
maxReplicas: 5
39+
# logical group name, for this called small-group, also can be functional
40+
groupName: small-group
41+
rayStartParams: {}
42+
#pod template
43+
template:
44+
spec:
45+
containers:
46+
- name: ray-worker # must consist of lower case alphanumeric characters or '-', and must start and end with an alphanumeric character (e.g. 'my-name', or '123-abc'
47+
image: rayproject/ray:2.9.0
48+
resources:
49+
limits:
50+
cpu: 1
51+
memory: 1Gi
52+
requests:
53+
cpu: 500m
54+
memory: 1Gi

0 commit comments

Comments
 (0)