You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何查看KubeRay集群中安装的Ray版本?

查看KubeRay集群中Ray版本的方法

以下是几种直接有效的方式来获取已安装的Ray版本:

  • 从Ray Head Pod镜像标签获取

    1. 列出集群中的Head节点Pod:
      kubectl get pods -l ray.io/node-type=head
      
    2. 查看目标Pod的镜像信息,替换<head-pod-name>为实际Pod名称:
      kubectl describe pod <head-pod-name> | grep Image:
      
      输出的镜像名(如rayproject/ray:2.9.0)中,冒号后的部分就是Ray版本号。
  • 在Head Pod内执行版本命令

    1. 进入Head Pod的交互式shell:
      kubectl exec -it <head-pod-name> -- /bin/bash
      
    2. 直接查询Ray版本:
      ray --version
      
      也可以通过Python确认Runtime版本:
      python -c "import ray; print(ray.__version__)"
      
  • 查看RayCluster资源配置
    如果是通过自定义CRD部署的集群,查看RayCluster的配置YAML:

    kubectl get raycluster heterogeneous -o yaml
    

    在spec.headGroupSpec.template.spec.containers下的image字段中,可找到包含版本号的镜像地址。

内容的提问来源于stack exchange,提问作者Romeo Kienzler

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.30 07:23:14