ray-k8s部署

https://docs.ray.io/en/latest/cluster/kubernetes/getting-started/raycluster-quick-start.html#kuberay-raycluster-quickstart

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
相关推荐
用户83562907805121 分钟前
使用 Python 自动化 PowerPoint 形状布局与格式设置
后端·python
用户8356290780512 小时前
用 Python 自动化 PowerPoint 演讲者备注添加
后端·python
黄忠8 小时前
01-系统架构设计-LangGraph状态机与多源异构RAG
python
zzzzzz3108 小时前
假如我是掘金管理员,我先给评论区装个'代码审查'系统
python·程序员·机器人
砍材农夫8 小时前
python环境|conda安装和使用(2)
后端·python
程序员龙叔21 小时前
编写高质量 Skill 系列 -- 如何设计需求分析与用例生成的 SKILL
自动化测试·软件测试·python·软件测试工程师·接口测试·性能测试·skill·ai测试
用户8356290780511 天前
使用 Python 操作 Word 内容控件
后端·python
码云骑士1 天前
32-慢查询排查全流程(下)-索引优化实战与最左前缀原则
python
闵孚龙1 天前
《PyTorch 深度修炼》Dataset 和 DataLoader:数据如何喂给模型
人工智能·pytorch·python