Skip to content

Commit

Permalink
[Feat] Add sample yaml for RayJob clusterSelector config
Browse files Browse the repository at this point in the history
Closes: #2504
Signed-off-by: Chi-Sheng Liu <[email protected]>
  • Loading branch information
MortalHappiness committed Nov 6, 2024
1 parent b875b85 commit 36585a1
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: ray.io/v1
kind: RayJob
metadata:
name: rayjob-use-existing-raycluster
spec:
entrypoint: python -c "import ray; ray.init(); print(ray.cluster_resources())"
# Select an existing RayCluster called "ray-cluster-kuberay" instead of creating a new one.
clusterSelector:
ray.io/cluster: ray-cluster-kuberay

0 comments on commit 36585a1

Please sign in to comment.