-
Notifications
You must be signed in to change notification settings - Fork 58
Added Custom Volume/Volume Mount Support #554
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
Added Custom Volume/Volume Mount Support #554
Conversation
KPostOffice
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall LGTM. One tiny comment
|
Conflict but then ready to come in I think |
KPostOffice
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: KPostOffice The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Issue link
RHOAIENG-8262
What changes have been made
Added a two new config variables
volumeswhich is used for adding custom volumes on a Ray Cluster andvolume_mountswhich does the same but for VolumeMounts.Verification steps
Setup
Notebook server ODH/RHOAI/Local
git clone https://github.com/project-codeflare/codeflare-sdk.gitpoetry build- install if needed (pip install poetry)pip install --force-reinstall dist/codeflare_sdk-0.0.0.dev0-py3-none-any.whlTesting
The
volumesandvolume_mountsconfig parameters are both lists that take theV1VolumeandV1VolumeMountobjects respectively.Below I have given some examples for testing purposes.
Volumes/Volume Mounts configuration
ClusterConfiguration
Test Config Map
Test Secret
test-secretVerify
The volumes & volume mounts should be added to your worker and head pods.
You can exec into your pod and check that the emptyDir, Config Map volume and Secret Volume were mounted correctly
Checks