What is KubeRay?
KubeRay is an open-source Kubernetes operator that deploys and manages Ray applications on Kubernetes. It adds three custom resources to your cluster - RayCluster, RayJob, and RayService - so you can describe Ray workloads as Kubernetes objects and let the operator handle their lifecycle. It sits in the GPU & Compute Clouds category of the Models & Inference tools and is open-source, written in Go and licensed Apache-2.0.
Overview
KubeRay is an open-source Kubernetes operator that deploys and manages Ray applications on Kubernetes. It adds three custom resources to your cluster - RayCluster, RayJob, and RayService - so you can describe Ray workloads as Kubernetes objects and let the operator handle their lifecycle.
It is aimed at ML platform and infrastructure teams who already run Kubernetes and want to schedule distributed training, batch inference, and online model serving on Ray without managing clusters by hand. RayCluster covers long-lived clusters with autoscaling and fault tolerance, RayJob creates a cluster, runs a job, and can tear the cluster down afterward, and RayService runs a Ray Serve deployment graph with zero-downtime upgrades.
As a compute-orchestration tool, KubeRay sits between Ray and the wider Kubernetes ecosystem. It integrates with observability tools like Prometheus and Grafana, queuing systems such as Volcano, Apache YuniKorn, and Kueue, and ingress controllers, and ships optional add-ons including a kubectl plugin, an API server, and a dashboard.
What it does
- Three custom resource definitions - RayCluster, RayJob, and RayService - to model Ray workloads as Kubernetes objects
- Full RayCluster lifecycle management, including creation, deletion, autoscaling, and fault tolerance
- RayJob automatically provisions a RayCluster, submits the job, and can delete the cluster when the job finishes
- RayService runs a Ray Serve deployment graph with zero-downtime upgrades and high availability
- Optional kubectl ray plugin (Beta) to simplify common Ray-on-Kubernetes workflows
- Integrates with the Kubernetes ecosystem: Prometheus, Grafana, Volcano, Apache YuniKorn, Kueue, and Nginx
Getting started
Install the KubeRay operator with Helm, then deploy a RayCluster custom resource. You need a running Kubernetes cluster and Helm installed.
Add the KubeRay Helm repository
Register the official KubeRay Helm repo and refresh your local cache.
helm repo add kuberay https://ray-project.github.io/kuberay-helm/
helm repo updateInstall the KubeRay operator
Install the operator and its custom resource definitions into your cluster.
helm install kuberay-operator kuberay/kuberay-operator --version 1.6.0Deploy a RayCluster
Create a sample Ray cluster using the ray-cluster chart. The operator manages its lifecycle from here.
helm install raycluster kuberay/ray-cluster --version 1.6.0Explore quickstarts for jobs and services
Follow the RayJob and RayService quickstarts in the Ray documentation to run batch jobs or serve models.
Commands and code are distilled from the project's own documentation — always check the official repo for the latest.
When to use it
- Run distributed model training across many GPU nodes on Kubernetes with autoscaling
- Submit batch inference or data-processing jobs that spin up and tear down a Ray cluster automatically
- Serve LLMs and other models online with a Ray Serve deployment graph and zero-downtime upgrades
- Standardize a multi-tenant ML platform on Kubernetes that integrates with Prometheus, Grafana, and queue schedulers
How KubeRay compares
KubeRay alongside other open-source gpu & compute clouds tools AI/TLDR tracks, ranked by GitHub stars.
| Tool | Stars | What it does |
|---|---|---|
| Ray | ★ 44.4k | A distributed computing framework that scales Python and ML workloads for training, tuning, data processing, and serving. |
| Prefect | ★ 24.3k | A Python-native workflow orchestration tool for scheduling, running, and monitoring data and ML pipelines. |
| Dagster | ★ 16.5k | A data and ML pipeline orchestrator with a declarative asset model, built-in lineage, and observability. |
| Kubeflow | ★ 16k | A Kubernetes toolkit that brings together pipelines, notebooks, and training operators for running ML workflows at scale. |
| Kedro | ★ 11.1k | Python framework for production-ready data engineering and data science pipelines, hosted by the LF AI & Data Foundation: a project template, a Data Catalog of connectors, and a dependency-resolving pipeline abstraction. |
| SkyPilot | ★ 10.9k | A framework that runs AI jobs across clouds and Kubernetes, automatically finding and provisioning the cheapest available GPUs. |
| Metaflow | ★ 10.4k | A Python framework from Netflix for building and running data science and ML workflows that scale from laptop to cloud. |
| KubeRay | ★ 2.8k | Run and scale Ray clusters, jobs, and services on Kubernetes |

