doc/source/cluster/kubernetes/user-guides/upgrade-guide.md
(kuberay-upgrade-guide)=
KubeRay CI tests the nightly KubeRay against the three most recent major or minor releases of Ray, as well as against the nightly Ray build. For example, if the latest Ray release is 2.7.0, KubeRay CI tests the nightly KubeRay against Ray 2.7.0, 2.6.0, 2.5.0, and the nightly Ray build.
The [commit](https://github.com/ray-project/ray/pull/44658) introduces a bug in Ray 2.11.0.
When a Ray job is created, the Ray dashboard agent process on the head node gets stuck, causing the readiness and liveness probes, which send health check requests for the Raylet to the dashboard agent, to fail.
The preceding compatibility plan is closely tied to the KubeRay CRD versioning plan.
Typically, while new fields are added to the KubeRay CRD in each release, KubeRay doesn't bump the CRD version for every release.
If you want to understand the reasoning behind the CRD versioning plan, see ray-project/ray#40357 for more details.
Upgrading the KubeRay version is the best strategy if you have any issues with KubeRay. Due to reliability and security implications of webhooks, KubeRay doesn't support a conversion webhook to convert v1alpha1 to v1 APIs.
To upgrade the KubeRay version, follow these steps in order:
The following is an example of upgrading KubeRay from v1.3.X to v1.4.0:
# Upgrade the CRD to v1.5.1.
# Note: This example uses kubectl because Helm doesn't support lifecycle management of CRDs.
# See the Helm documentation for more details: https://helm.sh/docs/chart_best_practices/custom_resource_definitions/#some-caveats-and-explanations
$ kubectl replace -k "github.com/ray-project/kuberay/ray-operator/config/crd?ref=v1.5.1"
# Upgrade kuberay-operator to v1.5.1. This step doesn't upgrade the CRDs.
$ helm upgrade kuberay-operator kuberay/kuberay-operator --version v1.5.1
# Install a RayCluster using the v1.5.1 helm chart to verify the success of the upgrade.
$ helm install raycluster kuberay/ray-cluster --version 1.5.1