From 971fa35dc20689090bb7067080df8ba3898b5038 Mon Sep 17 00:00:00 2001 From: Chi-Sheng Liu Date: Sat, 28 Sep 2024 23:32:16 +0800 Subject: [PATCH] [Chore][YuniKorn] Add sample yaml file for Apache YuniKorn Closes: ray-project/kuberay#2411 Signed-off-by: Chi-Sheng Liu --- .../ray-cluster.yunikorn-scheduler.yaml | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 ray-operator/config/samples/ray-cluster.yunikorn-scheduler.yaml diff --git a/ray-operator/config/samples/ray-cluster.yunikorn-scheduler.yaml b/ray-operator/config/samples/ray-cluster.yunikorn-scheduler.yaml new file mode 100644 index 0000000000..8d3a421acf --- /dev/null +++ b/ray-operator/config/samples/ray-cluster.yunikorn-scheduler.yaml @@ -0,0 +1,42 @@ +apiVersion: ray.io/v1 +kind: RayCluster +metadata: + name: test-yunikorn-0 + labels: + ray.io/gang-scheduling-enabled: "true" + yunikorn.apache.org/app-id: test-yunikorn-0 + yunikorn.apache.org/queue: root.test +spec: + rayVersion: "2.34.0" + headGroupSpec: + rayStartParams: {} + template: + spec: + containers: + - name: ray-head + image: rayproject/ray:2.34.0 + resources: + limits: + cpu: "1" + memory: "2Gi" + requests: + cpu: "1" + memory: "2Gi" + workerGroupSpecs: + - groupName: worker + rayStartParams: {} + replicas: 2 + minReplicas: 2 + maxReplicas: 2 + template: + spec: + containers: + - name: ray-head + image: rayproject/ray:2.34.0 + resources: + limits: + cpu: "1" + memory: "1Gi" + requests: + cpu: "1" + memory: "1Gi"