Repository navigation
[Docs] Support rollback in zero-downtime incremental upgrade - #65249
Conversation
There was a problem hiding this comment.
Code Review
This pull request updates the RayService incremental upgrade documentation to reflect its promotion from alpha to beta, adding detailed sections on rollback behavior, upgrade/rollback triggers, and new status conditions. The feedback suggests improving the clarity of the rollback documentation by replacing 'reverting' with 'resuming' in Case 2, and aligning the behavior of the RollbackInProgress condition with standard Kubernetes API design by setting it to False instead of removing it.
| | Condition | Description | | ||
| | :--- | :--- | | ||
| | `UpgradeInProgress` | `True` while both an active and a pending `RayCluster` exist for the `RayService`. KubeRay sets this condition to `False` with reason `NoPendingCluster` after it promotes the pending cluster, or after a rollback finishes and it deletes the pending cluster. | | ||
| | `RollbackInProgress` | `True` while KubeRay is rolling an in-progress incremental upgrade back to the original active cluster, with reason `DesiredClusterSpecChanged`. KubeRay removes this condition when the rollback completes, or when you revert the spec back to the pending cluster's spec to cancel the rollback. | |
There was a problem hiding this comment.
In Kubernetes, status conditions are typically set to False rather than being entirely removed from the status list, which helps preserve transition history. The description for UpgradeInProgress correctly states that KubeRay sets it to False. For consistency and standard Kubernetes API design, please clarify if RollbackInProgress is also set to False instead of being removed.
|
cc @ryanaoleary to take a look when you have time. |
Signed-off-by: win5923 <[email protected]>
ryanaoleary
left a comment
There was a problem hiding this comment.
some small nit comments, overall doc update LGTM
Signed-off-by: win5923 <[email protected]>
…ject#65249) ## Description Starting with KubeRay v1.7, incremental upgrade has reached Beta and supports rollback. Doc Link: https://anyscale-ray--65249.com.readthedocs.build/en/65249/cluster/kubernetes/user-guides/rayservice-incremental-upgrade.html ## Related issues kuberay-project/kuberay#4781 ## Additional information > Optional: Add implementation details, API changes, usage examples, screenshots, etc. --------- Signed-off-by: win5923 <[email protected]> Signed-off-by: 400Ping <[email protected]>
## Why The [KubeRay v1.7 blog](https://www.anyscale.com/blog/kuberay-v1-7) highlights several features whose docs currently live only on `master`. The corresponding pages are missing (404) or incomplete on the `latest` (2.58.0) docs build, and several blog links point at `/master` as a result. This backports the doc pages so the 2.58.0 `latest` docs cover the released KubeRay v1.7 surface. ## What (cherry-picks onto `releases/2.58.0`) | Commit | Blog feature | Gap on `latest` | |---|---|---| | #64303 | RayJob `SidecarMode` retry | new page was missing | | #65249 | RayService incremental upgrade rollback (beta) | `#rollback` section missing | | #65074 | NetworkPolicy support (alpha) | new page was missing | | #65429 | Embedded RocksDB GCS backend | example version pin missing | | #65513 | Fix docs for KubeRay v1.7 | wrong NetworkPolicy field names + incorrect `kubernetes` pip guidance | | #65483 | Customizable Ingress options | `ingressOptions` undocumented | Each commit is applied with `cherry-pick -x` (provenance preserved) and DCO sign-off. ## Not duplicating - No open PR cherry-picks these into `releases/2.58.0` (checked by PR number and by `--base releases/2.58.0`). - The two History Server refinements (#65441, #65505) are intentionally **excluded** — they already landed on `releases/2.58.0` (`c6061c10b97`, `d8277b53b0d`) and that page is already identical to `master`. - Broad, non-feature changes touching these files on `master` (llms.txt page descriptions #65115, the "Ray Pod" terminology rename #65423, the vendored CRD API reference #65428) are deliberately left out to keep this a tight, low-risk release-branch backport. ## Testing - Verified every new/changed page's `{ref}`/`{doc}` cross-reference target resolves on this branch (`fail_on_warning: true` build safety). - Verified both new toctree entries (`network-policy`, `rayjob-sidecar-submitter-restart`) point at files that exist on the branch. - Confirmed each touched file matches `master` except for the intentionally-excluded frontmatter/rename hunks above. - A full local Sphinx docs build is recommended before marking ready for review. AI assistance (Claude Code) was used to prepare this backport. --------- Signed-off-by: justinyeh1995 <[email protected]> Signed-off-by: Justin Yeh <[email protected]> Signed-off-by: JustinYeh <[email protected]> Signed-off-by: Douglas Strodtman <[email protected]> Signed-off-by: win5923 <[email protected]> Signed-off-by: Paul Nolan <[email protected]> Signed-off-by: machichima <[email protected]> Signed-off-by: wuallen57730 <[email protected]> Co-authored-by: JustinYeh <[email protected]> Co-authored-by: Jun-Hao Wan <[email protected]> Co-authored-by: Pat O'Connor <[email protected]> Co-authored-by: David Adamache <[email protected]> Co-authored-by: Paul Nolan <[email protected]> Co-authored-by: Nary Yeh <[email protected]> Co-authored-by: Lima <[email protected]>
…ject#65249) ## Description Starting with KubeRay v1.7, incremental upgrade has reached Beta and supports rollback. Doc Link: https://anyscale-ray--65249.com.readthedocs.build/en/65249/cluster/kubernetes/user-guides/rayservice-incremental-upgrade.html ## Related issues kuberay-project/kuberay#4781 ## Additional information > Optional: Add implementation details, API changes, usage examples, screenshots, etc. --------- Signed-off-by: win5923 <[email protected]>
Description
Starting with KubeRay v1.7, incremental upgrade has reached Beta and supports rollback.
Doc Link: https://anyscale-ray--65249.com.readthedocs.build/en/65249/cluster/kubernetes/user-guides/rayservice-incremental-upgrade.html
Related issues
kuberay-project/kuberay#4781
Additional information