-
Notifications
You must be signed in to change notification settings - Fork 402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Allow wait-gcs-ready to choose or bypass volumes to mount #1280
Comments
You can refer to this document to disable the init container injection and define your own init container. |
Thanks is there an example of a custom init container? |
You can refer to pod.go#L200 in #973. I will add a section in FAQ.md for more details later. |
Also is this approach generally recommended? The comment in the helm chart template warns explicitly against it: https://github.com/ray-project/kuberay/blob/master/helm-chart/kuberay-operator/values.yaml#L85 For the long term, I suspect having user-injected custom init containers may not be sustainable since the code might diverge. Would it be possible to perhaps extract the actual code injected for the init container to a config map? Then if the user wishes to inject their own logic (like bypassing volumes), they can at least reuse the same container code. |
Additionally, how about adding some template logic here to allow users to inject their init containers through Helm charts? |
The job of the init container is quite straightforward: it merely waits for the GCS on the Ray head Pod to be ready. We've added the comment We include these comments to encourage AI practitioners to use the default configurations and prevent potential misconfigurations. For infrastructure engineers, it's safe to define the init container independently. |
Search before asking
Description
Currently Kuberay worker pods have an init-container for connecting to the Ray head. It attempts to mount all the volumes that the Ray container mounts: https://github.com/ray-project/kuberay/blob/master/ray-operator/controllers/ray/common/pod.go#L236
It would be helpful to add a way to select which volumes to mount, or bypass mounting completely.
The reason is that some volumes may be backed by other volume types that require special drivers to be installed. For example, GoogleCloudPlatform/gcs-fuse-csi-driver#38.
Use case
No response
Related issues
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: