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
相关推荐
花酒锄作田10 分钟前
如何发布自己的 Python 库到 PyPI
python
researcher-Jiang33 分钟前
Design Patterns——Template Method入门到情景实战
python·设计模式·模板方法模式
飞猪~4 小时前
LangChain python 版本 第一集
开发语言·python·langchain
2601_956319885 小时前
最新AI量化提效,先做可验证的小流程
人工智能·python
开飞机的舒克_6 小时前
FastAPI 实战入门:从路由、参数校验到依赖注入的后端开发指南
python·fastapi
霸道流氓气质7 小时前
Kiro 中反编译 JAR 包并分析字节码的流程指南
chrome·python·jar
人工智能时代 准备好了吗7 小时前
AI回答内容进入率监测:引用识别、文本匹配与语义判断
开发语言·人工智能·python
Metaphor6928 小时前
使用 Python 冻结 Excel 文件中的行、列和单元格
开发语言·python·excel
言乐68 小时前
Python实现建造微服务商城后台
开发语言·python·算法·微服务·架构