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
相关推荐
PAK向日葵3 小时前
我用 C++ 写了一个轻量级 Python 虚拟机,刚刚开源
c++·python·开源
财经资讯数据_灵砚智能5 小时前
基于全球经济类多源新闻的NLP情感分析与数据可视化(日间)2026年5月26日
大数据·人工智能·python·信息可视化·自然语言处理·ai编程·灵砚智能
我材不敲代码5 小时前
Python基础:列表详解、增删改查及常用高阶操作
开发语言·windows·python
AI玫瑰助手6 小时前
Python运算符:成员运算符(in/not in)的使用场景
开发语言·python·信息可视化
Warson_L6 小时前
python - class 入门
python
水木流年追梦6 小时前
大模型入门-大模型分布式训练2
开发语言·分布式·python·算法·正则表达式·prompt
ZHANG8023ZHEN6 小时前
Diffusion 数学推理
人工智能·python·机器学习
海天一色y7 小时前
SGLang 本地部署 Qwen3-8B 大模型实战指南
python·sglang
代码帮7 小时前
面试题 - GIL全局解释器锁 :为什么Python多线程不能利用多核?GIL对I/O密集和CPU密集任务的影响?如何绕过GIL(多进程、C扩展)
python·面试