Deploy a KubeRay operator
bash
helm repo add kuberay https://ray-project.github.io/kuberay-helm/
helm repo update
# Install both CRDs and KubeRay operator v1.6.0.
helm install kuberay-operator kuberay/kuberay-operator --version 1.6.0
bash
kubectl get pods
Deploy a RayCluster custom resource
bash
image:
repository: rayproject/ray
tag: "2.55.1-py311-aarch64"
pullPolicy: IfNotPresent
head:
rayStartParams:
dashboard-host: "0.0.0.0"
object-store-memory: "200000000"
resources:
requests:
cpu: "500m"
memory: "1536Mi"
limits:
cpu: "2"
memory: "3072Mi"
worker:
replicas: 1
minReplicas: 0
maxReplicas: 1
rayStartParams:
object-store-memory: "200000000"
resources:
requests:
cpu: "500m"
memory: "1024Mi"
limits:
cpu: "2"
memory: "2048Mi"
bash
helm install raycluster kuberay/ray-cluster --version 1.6.0
helm install raycluster kuberay/ray-cluster --version 1.6.0 -f raycluster-k3d-small-values.yaml
# Once the RayCluster CR has been created, you can view it by running:
kubectl get rayclusters
# View the pods in the RayCluster named "raycluster-kuberay"
kubectl get pods --selector=ray.io/cluster=raycluster-kuberay
端口转发
bash
kubectl port-forward -n prefect svc/raycluster-kuberay-head-svc 8265:8265 10001:10001 --address 0.0.0.0