Repository navigation
Conversation
A Ray task can name an existing KubeRay RayCluster in the task config key ray.existing_cluster. The plugin then emits a RayJob with clusterSelector instead of a cluster spec, so the task runs as the job driver on that cluster. KubeRay never deletes a selected cluster; shutdown and TTL stay unset. The key is read from TaskTemplate.config and from the container config, where the Flyte 2 SDK's config() hook writes it. Selector jobs may carry no custom. The task container's literal env vars are forwarded to the driver through runtime_env.env_vars, since the driver runs on the cluster's head instead of the task pod. The submitter pod uses the task image with KubeRay's default submitter resources. SidecarMode is rejected because KubeRay does not support it for selector jobs. The mode is off by default (allowExistingCluster): the driver runs with the selected cluster's identity, so operators opt in. Signed-off-by: Christian <chjdev@users.noreply.github.com>
KubeRay sets JobDeploymentStatus ValidationFailed for a RayJob spec it rejects. GetTaskPhase returned an unknown-status error, so the task was retried as a system error. It now fails with KubeRay's message, and IsTerminal reports the status as terminal. Signed-off-by: Christian <chjdev@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Tracking issue
Why are the changes needed?
What changes were proposed in this pull request?
How was this patch tested?
Labels
Please add one or more of the following labels to categorize your PR:
This is important to improve the readability of release notes.
Setup process
Screenshots
Check all the applicable boxes
Related PRs
Stack
If you do use
git townto manage PR Stacks, the stack relevant to this PRwill show below. Otherwise, you can ignore this section.
Docs link