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
相关推荐
安_6 小时前
如何构建和使用向量索引?HNSW 和 IVF 有什么区别?
python·ai
counting money7 小时前
Java IO流详解:从InputStream到文件操作实战
java·开发语言·python
坚持学习前端日记8 小时前
Python SQLAlchemy ORM 从0到1精通实战手册(基础到复杂高阶)
数据库·python·oracle
北斗落凡尘8 小时前
LangGraph 入门实战(11)--输出模式
后端·python·langchain
雪碧聊技术9 小时前
安装Python(保姆级教程)
python·版本更新·python下载
++==9 小时前
JSON和Python的 四种核心容器
python·json
张龙68711 小时前
uv 全面指南:比 pip 快 100 倍的 Python 包管理器,从安装到团队落地
后端·python
@HNUSTer12 小时前
Python数据可视化科技图表绘制系列教程(八)
python·数据可视化·科技论文·专业制图·科研图表
专注仿真13 小时前
问答大模型技术方案算法实现-熵权法融合算法 + 交叉编码器重排算法
人工智能·python·算法·语言模型·问答大模型关键算法·熵权融合算法·交叉编码器重排算法
满怀冰雪13 小时前
22-使用 PaddleClas 快速训练图像分类模型
人工智能·python·机器学习·分类·数据挖掘·paddlepaddle